Javascript do Postback

whenever you want to do a postback from javascript side :

1.Add a server side button and set its visible = false:

<asp:Button Visible = "False" ID="btnHidden" /> 



2.add javascript code :

__doPostBack("<%=btnHidden.ClientID %>", '');


你可能感兴趣的:(JavaScript)