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

Please support our ASP.NET advertiser: Intel Parallel Studio Home
Thread Solved

Join Date: May 2007
Posts: 8
Reputation: Yamazaki is an unknown quantity at this point 
Solved Threads: 0
Yamazaki Yamazaki is offline Offline
Newbie Poster

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

 
0
  #1
Dec 28th, 2008
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.
Reply With Quote Quick reply to this message  
Join Date: May 2007
Posts: 8
Reputation: Yamazaki is an unknown quantity at this point 
Solved Threads: 0
Yamazaki Yamazaki is offline Offline
Newbie Poster

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

 
0
  #2
Dec 29th, 2008
Anyone !!
Reply With Quote Quick reply to this message  
Join Date: May 2007
Posts: 8
Reputation: Yamazaki is an unknown quantity at this point 
Solved Threads: 0
Yamazaki Yamazaki is offline Offline
Newbie Poster

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

 
0
  #3
Dec 29th, 2008
Solved, Response.Redirect("~/Page.aspx");
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 15
Reputation: srvishnukumar is an unknown quantity at this point 
Solved Threads: 0
srvishnukumar srvishnukumar is offline Offline
Newbie Poster

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

 
0
  #4
Dec 30th, 2008
In Username1
Response.redirect(page1.aspx)
In Username2
Response.redirect(page2.aspx)
In Username3
Response.redirect(page3.aspx)
Reply With Quote Quick reply to this message  
Join Date: Jan 2009
Posts: 1
Reputation: Pandat is an unknown quantity at this point 
Solved Threads: 0
Pandat Pandat is offline Offline
Newbie Poster

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

 
0
  #5
Jan 6th, 2009
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
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC