not getting hidden values while postback of a button in.net
Posted
by
user1075242
on Stack Overflow
See other posts from Stack Overflow
or by user1075242
Published on 2012-03-24T09:43:27Z
Indexed on
2012/03/24
11:29 UTC
Read the original article
Hit count: 187
JavaScript
|vb.net
I am using asp.net. I have taken one Hidden value and assigning value to that hidden variable in Java-script.
aspx: <input type="hidden" runat="server" id="hdnProductionIds" value="0" name="hdnProductionIds" />
JS:
document.getElementById("ctl00_ContentPlaceHolder1_hdnProductionIds").value = "123";
I want to use that hidden value in server side coding(vb.net). But while do-post back, hidden variable value becomes Zero (default value)
Can any one please suggest me.
Thanks, Jagadi.
© Stack Overflow or respective owner