Advertisement

04.03.2008 at 07:10AM PDT, ID: 23292833
[x]
Attachment Details

Assigning a value to HTML hidden field

Asked by Farzadw in Microsoft Visual Basic.Net, Programming for ASP.NET

Tags: VB.Net

I would think this should work. Not sure why it doesnt:

I have:
1. <input type=hidden id="DateFormat"  runat="server" />  in my aspx page
2. In code behind i have: DateFormat.value = "1"
3. in aspx page, i do: alert(document.getElementById("DateFormat"));

But that comes out as NULL. What am I doing wrong??Start Free Trial
[+][-]04.03.2008 at 07:17AM PDT, ID: 21272883

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Microsoft Visual Basic.Net, Programming for ASP.NET
Tags: VB.Net
Sign Up Now!
Solution Provided By: itzdarc
Participating Experts: 1
Solution Grade: A
 
 
[+][-]04.03.2008 at 07:29AM PDT, ID: 21273020

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.03.2008 at 07:38AM PDT, ID: 21273133

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.03.2008 at 07:48AM PDT, ID: 21273250

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628