ASP.NET postback with jQuery?

前端 未结 6 1579
深忆病人
深忆病人 2020-12-13 21:19

I have a ASP.NET button but recently, I replaced it with a standard HTML button ... What I need to do is a postback to an ASP.NET page and ensure a method is called.

6条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-13 21:25

    Check out this article

    http://www.deviantpoint.com/post/2009/03/12/Using-jQuery-UI-Dialogs-for-confirmation-windows.aspx

    The basic idea is you place the call back function in a hidden field and run an eval on the $(this).dialog('close');

    I used this to have it work in a Gridview, so if you want to know how to do that leave a comment.

提交回复
热议问题