Click here to Skip to main content
15,884,962 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all,
<%#Eval("name")%> i use this code in my web appl.
plz give me idea about how can i pass myid which is stored on session i.e. ( Session["xid"] )in above line.
Posted
Comments
loctrice 27-Nov-12 8:41am    
This is a c# question, not a jQuery one. Also, you didn't give a lot to go on.

I'm not exactly sure from your post what you are shooting for. If you don't mind using the code behind file then

This may help[^]

I'm not sure how to do it with inline script, but I'm sure it can be done.
 
Share this answer
 
You can store it in java script variable and access that variable to have session value.

You can not set session value on client side because it is server side variable. You have to use code-behind to set the property of session.
 
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