Click here to Skip to main content
15,912,069 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Please any one can help me to provide me the asp.net code for redirect to previous page after login instead of destination page.

Thanks in advance
Posted

If you are using form based authentication, then it should be taken care by ASP.NET runtime automatically by the RETURNURL query string part of the URL, refer the following URL to have a concrete understanding

http://msdn.microsoft.com/en-us/library/ff647070.aspx[^]
 
Share this answer
 
You can use Response.Redirect() to programmatically redirect the browser to a specific page.

In your case you probably have to add this to your Login event handler, after the validation has been done.
But since you didn't provide any code at all this is just a wild guess.
 
Share this answer
 

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