Click here to Skip to main content
15,895,011 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi,,,

I have created one login page containing Acc No., Email Id, And Password
there is one remember me check Box if user select option than it should display the Email And Acc No. in resp TextBoxes during next login. how i can do this??
is cookeis are useful here? how use that??

Can Any one suggest smthin else rather than Link
Posted
Updated 18-May-10 3:30am
v2

amitktkr wrote:
is cookeis are useful here?


Yes.
I would suggest you to read about cookies in asp.net and you will know how to do it. I will provide you the link.
ASP.NET Cookies Overview[^]
 
Share this answer
 
Comments
Dalek Dave 18-May-10 10:05am    
He did state he didn't want a link, but I looked, it was fine :)
for this you have to use formsauthentication and for the method Formsauthentication.SetAuthenticationCookie(), the second parameter must be true.
 
Share this answer
 
yes..I dont think I need to talk much about it since the above 2 answers have told it all : so just read about Cookies.
 
Share this answer
 
Off Course,
Cookie is the only thing that will reach to your solution.

Create new instance of HttpCookie and then insert key,value pair like
cookieInstance.add('email',txtEmail.text);
cookieInstance.add('accno',txtAccNo.text);

and when user again comes to that page. then check if Cookie is availble.

then fetch email and accno value from that and then display it.

Thanks,
dont forget to Mark as a Answer

Hiren Solanki
 
Share this answer
 
Comments
Christian Graus 27-Aug-10 6:30am    
Why post an answer that's already been given ? I would think you'd want to store something more esoteric than the user email and account number, so that it's not easy to hack.
Lantei 27-Aug-10 8:04am    
@ Christian..Exactly what I was thinking..good!

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