Posted on: 2/12/2014 6:36:17 PM | Views : 567

I can not seem to get this Javascript program to work.  I put runat="server" in all the HTML Buttons and Textboxes,  I placed a ID="myform" in Site.Master in <form> before "MainContent".
Here is my code:
<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent"><title>TimeZone</title> <script type="text/javascript"> function timezone() { var offset = new Date().getTimezoneOffset(); var hourstamp = new Date().getTime("HH:mm:ss"); window.document.myform.tzone.value = offset; window.document.myform.hourvalue.value = hourstamp; } </script> </asp:Content> <asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent"> <center><table><tr><td><br /><br /> ...

Go to the complete details ...