simpl login page using sessions in asp.net
any one help me through the source and step by step eplanation
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Ankit NandekarPosted Apr 13, 2011, 6:32 AM
1.Create Login table.
2.Do logic To authenticate user.
3.when user is authenticated create a session for example:
Session["Username"]=txtUsername.Text;
4.After that if you want to show user name in next page after login then take one Label who will show you welcome and login username.
on nextpage load event write like
lblWelcome.Text="Welcome"+Session["Username"].Tostring();
CrishPosted Apr 13, 2011, 6:26 AM
TextBox1.Tex =JornCorner;
- Session["Name"] = TextBox1.Text.ToString();
- Session["Color"] = TextBox2.Text.ToString();
Write the code U pass the SessionLable = lblSession;
lblSession= Session["Name"].toString();
Dinesh BeniwalPosted Apr 13, 2011, 2:41 AM