asp.net - !IsPostBack event from Javascript -
i using asp.net
i have set value of variable [testvar] javascript on page load. first time when page load. !ispostback event on code side. next postback function of javascript should not call. please let me know how implement it.
add line aspx page:
<% if (!this.ispostback) %> <% { %> <script type="text/javascript"> document.getelementbyid("<%= this.timevar.clientid %>").value = '1/1/2010'; </script> <% } %>
Comments
Post a Comment