You cannot access HTML from your code behind unless your tag has been marked with Runat=server. So, you can do any of the following
1.) Add a runat=server tag and see if you can set the value in your code behind
2.) Use the <asp:HiddenField> control so you can access the item from your code behind
3.) Use inline script to set the value using a property from your page, e.g.
<INPUT id="hidfield" type="hidden" value="<%=HiddenTimeValueProperty%>">
Also know, however, that if you are moving from one page to another page, the hidden field is NOT going to automatically follow from one page to the next. If you are staying on the same page, you should be good to go automatically.
Damon Armstrong, Technology Consultant
[
Blog] [
Articles]