Click here to Skip to main content
15,892,768 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all,
I have to execute a page which is on another server without redirect,
I have tried Server.Execute("http://in.jagran.yahoo.com>")

but it is not working plz give suggestion if any....
Posted
Updated 24-Jun-10 20:54pm
v3
Comments
Ankur\m/ 25-Jun-10 2:47am    
Shouldn't it be http://yahoo.com?
See the difference in slashes(//).

saurabhmaghar wrote:
I have tried Server.Execute("http:\\yahoo.com")


Thats not the correct URL!

Try:
Server.Execute("http://www.google.com")
 
Share this answer
 
Server.Execute is used to include ASP page within the same application space (the same folder or one of its subfolder). You can't execute an external page.

Instead of this you can use iframe to show the content of the external website page.
 
Share this answer
 
v2
Use Server.Transfer ("http://www.google.com")
 
Share this answer
 
Comments
Ankur\m/ 6-Jul-10 6:10am    
Reason for my vote of 1
There isn't anything different than what Sandeep said (and that too after a week). Please do not give answers just to earn reputations points.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900