Click here to Skip to main content
15,895,777 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
please can any body help me out in this regard

I have one doubt,I have created two web applications and hosted on local iis.In first application i have one web form in that one button control is present,in button click event i have written Server.Transfer("http://localhost/app2/Webform1.aspx");means i am trying to navigate second
webapplication's webpage that is webform1.aspx .which as virtual path as in serverobject .but it showing error provide virtual path .Is it possible to navigate to other app page which is present int same server
Posted
Comments
ZurdoDev 19-Jul-13 10:41am    
It is possible. Why don't you just do Response.Redirect? Also, what is the error?
chandubbbb 20-Jul-13 6:15am    
ya we can do with response.redirect but compare to response.redirect ,server.transfer is faster
it uses onely one request and response cycle .and the error was stated like"provide virtual path"
ZurdoDev 20-Jul-13 17:26pm    
1. If you provide the exact error that would help.
2. Yes, response.redirect has a roundtrip but it isn't slow enough for a user to notice, usually.
[no name] 19-Jul-13 11:15am    
Server.Transfer("~/app2/Webform1.aspx");

You try this code
chandubbbb 20-Jul-13 6:19am    
I have tried as above no use. Actully ~ symbol brings the control to root directory of the project but here we need to come out of the project and need to navigate other webapplications web page

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