Hi,
Please help me, I need to set value of ASP.Net Hidden Field control using JavaScript.
Thanks
This way
<asp:HiddenField ID = "HiddenField1" runat = "server" /> <script type = "text/javascript"> window.onload = function () { document.getElementById("<%=HiddenField1.ClientID %>").value = "Test"; alert(document.getElementById("<%=HiddenField1.ClientID %>").value); }; </script>
© COPYRIGHT 2025 ASPSnippets.com ALL RIGHTS RESERVED.