Session
how to create Session and after a How to assign that session any example plz tell me
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
Nishant MittalRank #692 · 3.5K reputationPosted Dec 23, 2015, 7:41 PM EST
Raja TRank #685 · 3.5K reputationPosted Dec 23, 2015, 7:55 PM EST
Rajesh SinghRank #1,806 · 824 reputationPosted Dec 23, 2015, 8:07 PM EST
Rajeesh MenothRank #118 · 18.4K reputationPosted Dec 23, 2015, 10:23 PM EST
First you want to know "Session" is a server side state management.
Example :
Session["username"] // you can define any name inside the [""].
Session["username"] = Txt_Username.Text.ToString(); // Now i assigned text box value into session..
Txt_Fullname.Text = Session["username"].ToString(); // Now the session value assigned to another textbox.
Nb : The page will continues postback then you can use viewstate["username"].it will preserve session on continue postback.