Click here to Skip to main content
15,913,279 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: too many characters in character literal- how to debug this Pin
ednrgc7-Dec-06 6:34
ednrgc7-Dec-06 6:34 
QuestionPosting Form Data Pin
ole887-Dec-06 6:06
ole887-Dec-06 6:06 
AnswerRe: Posting Form Data Pin
ednrgc7-Dec-06 8:46
ednrgc7-Dec-06 8:46 
GeneralRe: Posting Form Data Pin
ole887-Dec-06 9:29
ole887-Dec-06 9:29 
QuestionUsing the Menu Control in WebForms Pin
Roger Wright7-Dec-06 4:51
professionalRoger Wright7-Dec-06 4:51 
AnswerRe: Using the Menu Control in WebForms Pin
minhpc_bk7-Dec-06 14:37
minhpc_bk7-Dec-06 14:37 
GeneralRe: Using the Menu Control in WebForms Pin
Roger Wright8-Dec-06 3:23
professionalRoger Wright8-Dec-06 3:23 
Questionpaging Pin
licec7-Dec-06 4:37
licec7-Dec-06 4:37 
AnswerRe: paging Pin
Not Active7-Dec-06 5:43
mentorNot Active7-Dec-06 5:43 
Questionusing Classes in VB.NET Application Pin
osho20067-Dec-06 2:42
osho20067-Dec-06 2:42 
AnswerRe: using Classes in VB.NET Application Pin
ToddHileHoffer7-Dec-06 2:50
ToddHileHoffer7-Dec-06 2:50 
AnswerRe: using Classes in VB.NET Application Pin
ednrgc7-Dec-06 4:18
ednrgc7-Dec-06 4:18 
Questionhow to find menu item selected in other web page Pin
mohd imran abdul aziz7-Dec-06 2:09
mohd imran abdul aziz7-Dec-06 2:09 
AnswerRe: how to find menu item selected in other web page Pin
ToddHileHoffer7-Dec-06 2:23
ToddHileHoffer7-Dec-06 2:23 
GeneralRe: how to find menu item selected in other web page Pin
l0kke7-Dec-06 2:37
l0kke7-Dec-06 2:37 
GeneralRe: how to find menu item selected in other web page Pin
ToddHileHoffer7-Dec-06 2:41
ToddHileHoffer7-Dec-06 2:41 
GeneralRe: how to find menu item selected in other web page Pin
l0kke7-Dec-06 2:43
l0kke7-Dec-06 2:43 
GeneralRe: how to find menu item selected in other web page Pin
ToddHileHoffer7-Dec-06 2:51
ToddHileHoffer7-Dec-06 2:51 
QuestionHelp with ASP.Net Pin
Orlando Ramos7-Dec-06 1:34
Orlando Ramos7-Dec-06 1:34 
AnswerRe: Help with ASP.Net Pin
ToddHileHoffer7-Dec-06 2:08
ToddHileHoffer7-Dec-06 2:08 
AnswerRe: Help with ASP.Net Pin
l0kke7-Dec-06 2:41
l0kke7-Dec-06 2:41 
AnswerRe: Help with ASP.Net Pin
ednrgc7-Dec-06 4:20
ednrgc7-Dec-06 4:20 
Questionhow to access session variables in javascript? Pin
krishna_mag7-Dec-06 1:24
krishna_mag7-Dec-06 1:24 
AnswerRe: how to access session variables in javascript? Pin
ToddHileHoffer7-Dec-06 2:20
ToddHileHoffer7-Dec-06 2:20 
AnswerRe: how to access session variables in javascript? Pin
Guffa7-Dec-06 5:33
Guffa7-Dec-06 5:33 
You can not access session variables from Javascript. The Javascript runs in the browser, and the session variables are on the server.

If you want to use the value from a session variable in the Javascript, you have to write code that uses the value from the session variable to create Javascript code that recreates the value in the browser.

Example:

Session["asdf"] = 42;<br />
<br />
Page.ClientScript.RegisterStartupScript(this.GetType(), "SessionAsdfDeclaration", "var asdf = " + Session["asdf"].ToString(), true);



---
b { font-weight: normal; }

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.