In this article I am going to give you a step-by-step guide on how to do a User Login Redirect in ASP.Net
Getting Started
1. Create a new project site in Visual Studio or open the project that you are working on:
2. As you can see there are tree page default.aspx, OtherPage.aspx and MyPageThatIWant.aspx if we publish this site, users will be redirected to the default.aspx page on login, because this is predetermined in the server. There are several ways to do redirect to a page. In this case we are going to do it through asp.net.
3. In Visual Studio, Open the default.aspx page. In the load page event, add the following code.
For C#:
Response.Redirect("OtherPage.aspx");
For VB:
Response.Redirect("OtherPage.aspx")
4. Once we add this code, users will be redirected on login to the page set with that code:
This concludes User Login Redirect in ASP.Net
Looking for quality Windows Hosting? Look no further than Arvixe Web Hosting!
Happy Hosting!
Rodolfo Hernandez
Thanks for finally talking about >User Login Redirect in ASP.Net | Arvixe Blog <Loved it!
You’re welcome!