Click here to Skip to main content
15,895,011 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to pass my session variable to load particular user data how can i do that.
my session variable is
Session["InstituteId"]=ID
I want to pass this ID ingrid view
Posted
Comments
Abid Shk 19-Nov-14 1:20am    
do You want take data from Backend based on Session value or You have already data in gridview and you want to filter it based on Session just clear it
Member 11026061 19-Nov-14 1:46am    
Actually after user login to load particular user data in grid view i want to pass session in grid view

1 solution

Hi,
Declare a local variable and assign the session value to the variable and pass to your function.

[VB.Net]
VB
Dim str as String
str = Session["InstituteId"]


[C#]
C#
string str;
str = Session["InstituteId"];
 
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