954,595 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Using login form control, how to redirect users to different pages?

Hi, i need a little help here, in my app i've created 3 users by ASP Web Site Administration Tool and i want each user to be redirected to different pages from the login.aspx.

i.e. username1 enters his username and pw, press the login button, he should be redirected to page1.aspx.

username2 enters his username and pw, press the login button, should be redirected to page2.aspx ... and so on, so basically the page to be displayed to the user should depend on the Username.

What happens is when any of them tries to login, he's redirected to the default.aspx page, how can i manage to do this?.

Thanks.

Yamazaki
Newbie Poster
15 posts since May 2007
Reputation Points: 10
Solved Threads: 0
 

Anyone !!

Yamazaki
Newbie Poster
15 posts since May 2007
Reputation Points: 10
Solved Threads: 0
 

Solved, Response.Redirect("~/Page.aspx");

Yamazaki
Newbie Poster
15 posts since May 2007
Reputation Points: 10
Solved Threads: 0
 

In Username1
Response.redirect(page1.aspx)
In Username2
Response.redirect(page2.aspx)
In Username3
Response.redirect(page3.aspx)

srvishnukumar
Newbie Poster
15 posts since Aug 2008
Reputation Points: 10
Solved Threads: 0
 

Hellooooo buddy
you can take a string and give the path of page in database
with the help of insert query and when the user enter his user id aur password then fetch the path of that page in sql server

Pandat
Newbie Poster
1 post since Jan 2009
Reputation Points: 10
Solved Threads: 0
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You