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.
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.
Rajeesh MenothPosted Dec 24, 2015, 3:23 AM
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.
Rajesh SinghPosted Dec 24, 2015, 1:07 AM
Raja TPosted Dec 24, 2015, 12:55 AM
Nishant MittalPosted Dec 24, 2015, 12:41 AM