Click here to Skip to main content
15,884,176 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i want to Response.Redirect web form from one web application into another web application

What I have tried:

i have two web applications
1- Demo
2- NewDemo

NewDemo web application contains register.aspx form and Demo web application contains default.aspx page

i want to open register.aspx from NewDemo web application on button click on default.aspx from Demo web application


Can it is possible ....
Posted
Updated 29-Mar-16 22:49pm

1 solution

Yes it is possible.
Just Use full redirect path when you are redirecting
see below snippet
C#
string szPath = "http://ipaddress/NewDemo/Register.aspx";
Response.Redirect(szPath);

if you want to transfer some variable then you can use QueryString too.
 
Share this answer
 
v2
Comments
Karthik_Mahalingam 30-Mar-16 5:10am    
5ed!
koolprasad2003 30-Mar-16 5:19am    
Thanks...I have used above code many times.
Karthik_Mahalingam 30-Mar-16 6:11am    
hmm, ya me too :)

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