Click here to Skip to main content
15,891,607 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I want to redirected user to different pages as depends on no of times he logged in.
eg if he log in for 1st time he goes to page1.aspx
if logging in for more than once then goes to page2.aspx
Posted
Comments
bbirajdar 5-Nov-12 0:53am    
You have my permission. Go ahead and do it....

To solve this problem, create a one bool column in database and set it to false default.

When user login, check if he/she is first time then set that column value to true and redirect that user to page1.aspx else redirect user to page2.aspx

Problem solved!!
 
Share this answer
 
Hi ,

R u maintaining any last_user_login_time [ Last Login details ] ???
If answer is yes,

If values is null redirect to page1.aspx ELSE
redirect to page2.aspx.
 
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