Click here to Skip to main content
15,894,825 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to Show Welcome Popup box on first login of User in Asp.Net.
After first Login Popup Box Should not Show.

Please Help.
Posted
Comments
Prasad Khandekar 22-Apr-13 11:51am    
Assuming that you are keeping track of first login, how about redirecting user to a different welcome page upon first logon.
[no name] 22-Apr-13 12:03pm    
yes i am updating some flag in logindetail table to check first login and now i want to show a popup box after successfull login.
ZurdoDev 22-Apr-13 12:01pm    
You need to reply to the comment so that the person who made the comment is notified. Please do not post a comment to your own question.

1 solution

you may add one extra column in database like isfirstLogon is true or false.

when initially user registered you make the field null.when first login if it returns null then only the welcome message will be showed.and update the isfirstLogon=true.

then next time if isfirstLogon==true the welcome message not showed otherwise not showing the message.
 
Share this answer
 
Comments
Aner Bautista 22-Apr-13 13:24pm    
That's fine but I prefer to use a field named [LastLogonDate] in this case. This field is Null if is the first Login event.

But this is according to the taste of everyone.

In my personal case, I will not need [isfirstLogon] field anymore and I will spend less in my documentation.

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