Asp Button
<asp:Button ID="dmypbbtn" runat="server" OnClick="dmycall" style="display:none;" />
document.getElementById("<%=dmypbbtn.ClientID%>").click();
$("#<%=dmypbbtn.ClientID%>").trigger('Click');When you trigger the click function like the above format, the server side dmycall method will call with serverside postback.

 
0 nhận xét:
Đăng nhận xét