simpl login page using sessions in asp.net
any one help me through the source and step by step eplanation
Simple login page using sessions in asp.net
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Dinesh BeniwalRank #9 · 64K reputationPosted Apr 12, 2011, 10:41 PM EDT
CrishRank #1,487 · 1.1K reputationPosted Apr 13, 2011, 2:26 AM EDT
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();
Ankit NandekarRank #703 · 3.4K reputationPosted Apr 13, 2011, 2:32 AM EDT
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();