Click here to Skip to main content
15,918,193 members
Home / Discussions / JavaScript
   

JavaScript

 
GeneralRe: Reading Address Before Browser Loads It? Pin
weinerschizel6-Mar-12 8:36
weinerschizel6-Mar-12 8:36 
AnswerRe: Reading Address Before Browser Loads It? Pin
Luc Pattyn6-Mar-12 8:41
sitebuilderLuc Pattyn6-Mar-12 8:41 
AnswerRe: Reading Address Before Browser Loads It? Pin
0bx30-Mar-12 4:55
0bx30-Mar-12 4:55 
Question.exe in java Pin
aliasghar sayadi3-Mar-12 22:30
aliasghar sayadi3-Mar-12 22:30 
AnswerRe: .exe in java Pin
Richard MacCutchan3-Mar-12 23:27
mveRichard MacCutchan3-Mar-12 23:27 
Questionnodejs article moderation state unclear Pin
User 307353-Mar-12 17:43
professionalUser 307353-Mar-12 17:43 
AnswerRe: nodejs article moderation state unclear Pin
Richard MacCutchan3-Mar-12 23:26
mveRichard MacCutchan3-Mar-12 23:26 
AnswerRe: nodejs article moderation state unclear Pin
BobJanova5-Mar-12 0:43
BobJanova5-Mar-12 0:43 
QuestionAccessing another windows variables Pin
Member 43038102-Mar-12 3:16
Member 43038102-Mar-12 3:16 
AnswerRe: Accessing another windows variables Pin
BobJanova2-Mar-12 4:14
BobJanova2-Mar-12 4:14 
AnswerRe: Accessing another windows variables Pin
all_in_flames23-Apr-12 4:12
professionalall_in_flames23-Apr-12 4:12 
Questionpassing parameter from one page to another Pin
jack4277928-Feb-12 11:12
jack4277928-Feb-12 11:12 
AnswerRe: passing parameter from one page to another Pin
R. Giskard Reventlov28-Feb-12 11:33
R. Giskard Reventlov28-Feb-12 11:33 
QuestionJQuery Animate Pin
SRJ9226-Feb-12 16:22
SRJ9226-Feb-12 16:22 
Questionpassing parameter from one page to another Pin
vaibhavtiwari26025-Feb-12 21:00
vaibhavtiwari26025-Feb-12 21:00 
AnswerRe: passing parameter from one page to another Pin
hansoctantan28-Feb-12 2:04
professionalhansoctantan28-Feb-12 2:04 
AnswerRe: passing parameter from one page to another Pin
chandubond12-Mar-12 6:17
chandubond12-Mar-12 6:17 
QuestionTrying to use age.ClientScript.RegisterHiddenField - need help Pin
Member 779716724-Feb-12 13:49
Member 779716724-Feb-12 13:49 
Hi,

I have a myPage.aspx page and 2 user controls, ucA and ucB. ucA (parent control) is being used in ucB (child control inherits ucA). Finallly ucB is registered in myPage.aspx. I have two dropdowns in ucB.

Now, I am trying to put the selected values of these dropwdowns in a hidden variables using the below code and I am putting this in myPage.aspx page_load code


Page.ClientScript.RegisterHiddenField("LabValue", labname selectedvalue using FindControl)

Page.ClientScript.RegisterHiddenField("ClientValue", ClientName SelectdValue using FindControl))

The above code runs fine and no errors.

Now in the exeternal .js file I am accessing this values as

var lv = document.getElementById("LabValue").value;
var cv = document.getElementById("ClientValue").value;

All look fine. But the issue is no matter what values I put in the LabValue and ClientValue hidden fields I always get the values as 0 for lv and cv (java script variables).

Say for instance if LabValue is 10002 when I try to access it via javasacript using document.getElementById("LabValue").value; I always get 0 instead of 10002. It is the same case with the other hidden field too.

When I looked at the myPage.aspx viewsource I always see

<input type="hidden" name="LabValue" id="LabValue" value="0" />


Am I missing some thing here?

Thanks in advance,

L

modified 24-Feb-12 20:04pm.

QuestionHow to Create Ruler JavaScript Pin
Anubhava Dimri21-Feb-12 6:59
Anubhava Dimri21-Feb-12 6:59 
AnswerRe: How to Create Ruler JavaScript Pin
AspDotNetDev21-Feb-12 7:07
protectorAspDotNetDev21-Feb-12 7:07 
GeneralRe: How to Create Ruler JavaScript Pin
Anubhava Dimri21-Feb-12 17:19
Anubhava Dimri21-Feb-12 17:19 
GeneralRe: How to Create Ruler JavaScript Pin
Mohibur Rashid22-Feb-12 14:34
professionalMohibur Rashid22-Feb-12 14:34 
AnswerRe: How to Create Ruler JavaScript Pin
stuartthomas0125-Mar-12 21:13
stuartthomas0125-Mar-12 21:13 
Questioncall web service from java script Pin
giocot17-Feb-12 6:35
giocot17-Feb-12 6:35 
AnswerRe: call web service from java script Pin
Joachim123421-Feb-12 10:59
Joachim123421-Feb-12 10:59 

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.