Click here to Skip to main content
15,891,372 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Can anybody describe the whole coding to creating a new session and sending values on next page by using sessions
Posted
Comments
I.explore.code 22-Oct-12 7:06am    
Here you go, full solution! Session Coding complete

 
Share this answer
 
Comments
AshishChaudha 22-Oct-12 8:12am    
my +5
:) Assign Value:
C#
Session["YourSessionName"]= "YourSessionValue"

Retrive Value:
C#
string MySessionString= Session["YourSessionName"].ToString();


Thanks,
Ambesha
 
Share this answer
 
v3
Just write following code to create session in c#
C#
Session["ID"]=ID

DescriptionL:- The field that is between to brackets is Name given to session

<big>To Access Session</big>

C#
string ID=Session["ID"].toStraing()

C#
This this will help you 
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900