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

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -