var btn = document.getElementById("<%=Button1.ClientID %>"); btn.click(); __doPostBack('btn', 'OnClick'); <div style="display: none;"> <asp:Button ID="Button1" runat="server" OnClick="btnSubmit_Click"/> </div> C# Codebind public void <btnSubmit_Click(object sender, EventArgs e) { //Code }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)