Interviews15 answers
What is syntax for implementing session ?
15 Answers
Session["SessionName"]=Value;
Manoj Kumar DuraisamyPosted Jan 2, 2017, 8:44 PM EST
Session[id]="value;"
Khaja MoizuddinPosted Dec 2, 2016, 4:35 AM EST
Write Session
Session["UserName"]="Data";
Read Session
if(Session["UserName"]!=null && Convert.ToString(Session["UserName"]).Trim()!="")
{
//session data assign to label Control
lblUserName.Text=Convert.ToString(Session["UserName"]);
}
Ananth GPosted Oct 21, 2016, 12:11 AM EDT
To define or implement Session as : Session["Variable"]=value;
Sandeep SinghPosted Oct 8, 2016, 9:58 PM EDT
Session["Name"] = "Data";
Kashif AsifPosted Aug 7, 2016, 1:15 AM EDT
session["SessionName"] = "Value";
Nikhil SanganiPosted Jun 6, 2016, 3:16 AM EDT
Session["SessionName"] = SessionValue;
Bhuvanesh MohankumarPosted Jun 1, 2016, 5:15 AM EDT
Session["YourVariableName"]= assigningvalue;
Munesh SharmaPosted May 30, 2016, 8:40 PM EDT
Session["variablename"]=value;
Keerthi VenkatesanPosted May 12, 2016, 11:40 PM EDT
Session["variablename"]= value;
Ashish SrivastavaPosted Apr 23, 2016, 11:38 AM EDT
Session["varname"]=value;
Sreekanth ReddyPosted Mar 15, 2016, 1:46 AM EDT
Syntax to implement session:
Session["Variable"]=value;
ShrabanPosted Feb 4, 2016, 11:06 PM EST
Session["Variable"]=value;
Example
Session["FirstName"] = FirstNameTextBox.Text;
Ravi PatelPosted Dec 31, 2015, 12:27 AM EST
The syntax for implement session is
Session["Variable"]=value;
Sandeep KumarPosted Dec 29, 2015, 2:09 AM EST













