Click here to Skip to main content
12,746,296 members (31,071 online)
Rate this:
Please Sign up or sign in to vote.
See more: jQuery
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 27-Nov-12 3:17am
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.
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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.
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

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.

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

    Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170215.1 | Last Updated 27 Nov 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100