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.getElementB
yId("DateF
ormat"));
But that comes out as NULL. What am I doing wrong??
Start Free Trial