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

Popular posts from this blog

400 Bad Request on Apache/PHP AddHandler wrapper -

Add email recipient to all new Trac tickets -

php - Change action and image src url's with jQuery -