C# Corner
Tech
News
Videos
Forums
Jobs
Books
Events
More
Interviews
Live
Learn
Training
Career
Members
Blogs
Challenges
Certification
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Refer
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
.NET
ADO.NET
Android
ASP.NET
C#
Databases & DBA
Design Patterns & Practices
iOS
Java
OOP/OOD
SharePoint
Software Testing
Web Development
WPF
View All
15
Reply
What is syntax for implementing session ?
Sandeep Kumar
9y
2k
0
Reply
Delete Row
Delete Column
Insert Link
×
Insert
Cancel
Embed YouTube Video
×
Width (%)
Height (%)
Insert
Cancel
Table Options
×
Rows
Columns
First row as header
Create Table
Insert Image
×
Selected file:
Alignment
Left
Center
Right
Select an image from your device to upload
Upload to Server
Cancel
Submit
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"]); }
Ananth G
9y
1
Session["SessionName"]=Value;
Manoj Kumar
8y
0
Session[id]="value;"
Khaja Moizuddin
9y
0
To define or implement Session as : Session["Variable"]=value;
Sandeep Singh
9y
0
Session["Name"] = "Data";
Kashif Asif
9y
0
session["SessionName"] = "Value";
Nikhil Sangani
9y
0
Session["SessionName"] = SessionValue;
Bhuvanesh Mohankumar
9y
0
Session["YourVariableName"]= assigningvalue;
Munesh Sharma
9y
0
Session["variablename"]=value;
Keerthi Venkatesan
9y
0
Session["variablename"]= value;
Ashish Srivastava
9y
0
Session["varname"]=value;
Srikanth Reddy
9y
0
Syntax to implement session:Session["Variable"]=value;
Shraban
9y
0
The syntax for implement session is Session["Variable"]=value;
Kml Surani
9y
0
Session["Variable"]=value;Example Session["FirstName"] = FirstNameTextBox.Text;
Ravi Patel
9y
0
The syntax for implement session is Session["Variable"]=value;
Sandeep Kumar
9y
0
What is default time for Session in ASP .NET?
Why we use Interface ?
Message