Click here to Skip to main content
15,890,186 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
HI...How to redirect from one application to another application
Posted
Comments
Pankaj Nikam 24-Jul-12 1:44am    
Please clarify what are your needs. Explain what scenario you are working...
Rajini.Y 24-Jul-12 1:48am    
i have two web applications when i click on a button in one application i have to redirect to another application

if you are working on a website,
C#
Responce.Redirect("new_page.aspx");
 
Share this answer
 
Hi,
In case of two application you just use Response.Redirect only but in this way:
C#
Response.Redirect("http://localhost:51468/Website2/Default.aspx");
//51468 will be your port number.
//A full qualified path is required to navigate through different applications.



--Amit
 
Share this answer
 
Comments
Rajini.Y 24-Jul-12 3:15am    
Hi Amit..Thank you for your response.It is working fine..is there another way with out giving port number..because if we want to run the application in other systems which we don't know the port numbers..how can we handle with out giving port number
_Amy 24-Jul-12 3:20am    
Then replace "localhost:51468" with the IP address of the new system. And if you are planning to host it in server then use your domain name like:
http://www.TestWebApp.com/Default.aspx


Thank you.
_Amy 24-Jul-12 3:34am    
Forgot to accept the answer if it's working fine?
Hi,

Your question is not so clear but this one may help you

You can use

C#
Response.Redirect("New_Page_Name.aspx");


if it needs full path then construct url as you need
 
Share this answer
 
Comments
Rajini.Y 24-Jul-12 2:18am    
my question is i have two web applications website1,website2..in website1,i have a page default.aspx..in default.aspx i have a button when i click on button i have to redirect into default.aspx of website2

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