|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
I'm trying to pull in a session variable into my javascript:
var n = <%=Session(UserName)%> I had something working this morning, then I played around with it and now it's not working any more. Can any body tell me what's wrong? Thanks |
|
#2
|
|||
|
|||
|
figured it out - var n="<%=Session("UserName")%>";
|
|
#3
|
|||
|
|||
|
It is the most often mistake at use ASP + JavaScripts
:-) As you understand you specify a text constant for script and need quotes and ; |
![]() |
| Viewing: Dev Articles Community Forums > Programming > ASP Development > Grabbing ASP Session Info with Javascript |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|