What is syntax for implementing session ?
Sandeep Kumar
Write Session Session["UserName"]="Data";Read Sessionif(Session["UserName"]!=null && Convert.ToString(Session["UserName"]).Trim()!="") { //session data assign to label Control lblUserName.Text=Convert.ToString(Session["UserName"]); }
Session["SessionName"]=Value;
Session[id]="value;"
To define or implement Session as : Session["Variable"]=value;
Session["Name"] = "Data";
session["SessionName"] = "Value";
Session["SessionName"] = SessionValue;
Session["YourVariableName"]= assigningvalue;
Session["variablename"]=value;
Session["variablename"]= value;
Session["varname"]=value;
Syntax to implement session:Session["Variable"]=value;
The syntax for implement session is Session["Variable"]=value;
Session["Variable"]=value;Example Session["FirstName"] = FirstNameTextBox.Text;