c# - Adding OnClick event to ASP.NET control -


i create onclick event panel. far of google results more or less this: adding onclick event aspnet label. there way, call codebehind function javascript or panel attributes? because redirect user new page , before save information in viewstate or sessionstate. suggestions?

in java script method raise __dopostback call server side method.

<script type="text/javascript">      function yourfunction()      {          __dopostback('btntemp', '')      } </script> 

where btntemp server side button, write onclick event of button on server side, can processing , redirect other page.

you can have understanding of dopostback @ dopostback understanding


Comments

Popular posts from this blog

How do you change vbulletin's home page to the forums instead of the default (CMS or Activity Stream)? -

c++ - Troubles when compiling phash program -