Click here to Skip to main content
Rate this: bad
good
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 2:17am
Comments
loctrice at 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
good
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.
  Permalink  
Rate this: bad
good
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.
  Permalink  

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

  Print Answers RSS
0 CPallini 365
1 Sergey Alexandrovich Kryukov 277
2 OriginalGriff 165
3 George Jonsson 159
4 Richard MacCutchan 110
0 OriginalGriff 6,344
1 Sergey Alexandrovich Kryukov 5,860
2 CPallini 5,125
3 George Jonsson 3,559
4 Gihan Liyanage 2,522


Advertise | Privacy | Mobile
Web03 | 2.8.140916.1 | Last Updated 27 Nov 2012
Copyright © CodeProject, 1999-2014
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