Click here to Skip to main content
15,896,111 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionGet session variable from javascript Pin
zeeShan anSari20-Jul-09 2:34
zeeShan anSari20-Jul-09 2:34 
AnswerRe: Get session variable from javascript Pin
Manas Bhardwaj20-Jul-09 2:43
professionalManas Bhardwaj20-Jul-09 2:43 
AnswerRe: Get session variable from javascript Pin
Abhijit Jana20-Jul-09 3:10
professionalAbhijit Jana20-Jul-09 3:10 
GeneralRe: Get session variable from javascript Pin
zeeShan anSari20-Jul-09 3:22
zeeShan anSari20-Jul-09 3:22 
GeneralRe: Get session variable from javascript Pin
Abhijit Jana20-Jul-09 3:34
professionalAbhijit Jana20-Jul-09 3:34 
AnswerRe: Get session variable from javascript Pin
Aman Bhullar20-Jul-09 3:27
Aman Bhullar20-Jul-09 3:27 
AnswerRe: Get session variable from javascript Pin
Samir NIGAM20-Jul-09 22:30
Samir NIGAM20-Jul-09 22:30 
GeneralRe: Get session variable from javascript Pin
jbanko36515-Nov-09 8:21
jbanko36515-Nov-09 8:21 
no,no,no,no.......
I have seen this code in a couple of dozen posts and it NEVER works.
My situation
ASP .NET 3.5

C# code doc.aspx.cs

...
...
Session["UID"] = "1234";


Javascript doc.aspx

var uid = <%=Session("IUD")%> NO
var uid = '<%=Session("IUD")%>' NO
var uid = "<%=Session("IUD")%> NO
var uid = <%=Session([IUD"]%> NO
var uid = '<%=Session["IUD"]%>' NO
var uid = "<%=Session["IUD"]%>" NO

I think the code below would work but I'm not sure how to code the client side

C# code

HiddenField hUID.value = Session["UID"];

Javascript

????????????????

I'm pretty frustrated after several hours of trying to get this to work. A working example of code would be HIGHLY appreciated.

Thanks,

Joe B
Questionhiding the blinking cursor Pin
248912820-Jul-09 1:24
248912820-Jul-09 1:24 
AnswerRe: hiding the blinking cursor Pin
Aman Bhullar20-Jul-09 3:31
Aman Bhullar20-Jul-09 3:31 
AnswerRe: hiding the blinking cursor Pin
Abhishek Sur20-Jul-09 5:01
professionalAbhishek Sur20-Jul-09 5:01 
QuestionHow to validate the textbox Pin
Anjani Poornima20-Jul-09 1:13
Anjani Poornima20-Jul-09 1:13 
AnswerRe: How to validate the textbox Pin
sekannak20-Jul-09 1:21
sekannak20-Jul-09 1:21 
GeneralRe: How to validate the textbox Pin
Abhijit Jana20-Jul-09 1:43
professionalAbhijit Jana20-Jul-09 1:43 
GeneralRe: How to validate the textbox Pin
DoctorMick20-Jul-09 3:51
DoctorMick20-Jul-09 3:51 
QuestionGridview inside ListView Control Pin
megivimal20-Jul-09 0:40
megivimal20-Jul-09 0:40 
AnswerRe: Gridview inside ListView Control Pin
sekannak20-Jul-09 1:14
sekannak20-Jul-09 1:14 
GeneralRe: Gridview inside ListView Control Pin
megivimal20-Jul-09 1:22
megivimal20-Jul-09 1:22 
AnswerRe: Gridview inside ListView Control Pin
Zafar A khan 20-Jul-09 1:35
professionalZafar A khan 20-Jul-09 1:35 
GeneralRe: Gridview inside ListView Control Pin
megivimal20-Jul-09 2:00
megivimal20-Jul-09 2:00 
GeneralRe: Gridview inside ListView Control Pin
megivimal20-Jul-09 2:04
megivimal20-Jul-09 2:04 
GeneralRe: Gridview inside ListView Control Pin
Zafar A khan 20-Jul-09 18:47
professionalZafar A khan 20-Jul-09 18:47 
GeneralRe: Gridview inside ListView Control Pin
megivimal20-Jul-09 20:33
megivimal20-Jul-09 20:33 
QuestionTo get the value into the textbox when when particular item is selected in dropdown list Pin
Anjani Poornima20-Jul-09 0:19
Anjani Poornima20-Jul-09 0:19 
AnswerRe: To get the value into the textbox when when particular item is selected in dropdown list Pin
Baran M20-Jul-09 0:37
Baran M20-Jul-09 0:37 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.