asp.net - How to invoke server side function before invoking client side function -


i using update panel in application. inside update panel trying trigger html button, in turn should invoke server side function after need invoke client side function.but client side function getting invoked first server side function not getting invoked @ all.

here code

<asp:updatepanel id="embedcodepanel" runat="server" updatemode="conditional">    <triggers>          <asp:asyncpostbacktrigger controlid="btnembedurl" eventname="onclick"/>     </triggers> <contenttemplate>      <label id="lbl_embedcode" class="hide">site embed code:</label>      <textarea id="embedcode" class="embedcode hide">                                 createembedurl('<%=_redirecturl%>')       </textarea>   </contenttemplate>  </asp:updatepanel> 

this button code:

   <input id="btnembedurl" runat="server" type="button" value="generate url" onclick='channelembedurl();' /> 

onclick='channelembedurl();' 

this problem. onclick of input client side.


Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -