<head> <script> function Func() { var msg="Hello"; return msg; } </script> </head> <body> <form id="form1" runat="server"> <div> <asp:HiddenField ID="HidFieldID"; runat="server"; Value="Func()" /> </div> </form> </body>
HiddenField lblHTMLHiddenField = (HiddenField)this.Page.Master.FindControl("HidFieldID"); if (lblHTMLHiddenField != null) { Label1.Text = lblHTMLHiddenField.Value; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)