Raise Server side button click event from javascript in ajax call

前端 未结 2 2052
既然无缘
既然无缘 2020-12-10 17:40

I have a submit button on a page.



        
2条回答
  •  渐次进展
    2020-12-10 18:11

    Try this

    __doPostBack('<%=btDemo.ClientID%>','OnClick');
    

    Note the double underscore at the beginning

    This should trigger a postback if the button was clicked by the user

提交回复
热议问题