How to make a simple yes/no popup in ASP.NET that return the result back to my c#?

前端 未结 7 1010
再見小時候
再見小時候 2020-12-21 01:05

With ASP.NET, how do I prompt the user for a yes/no question and getting the result back to my .ascx?

So far I can open a confirmation dialog with use of Javascript,

7条回答
  •  猫巷女王i
    2020-12-21 01:32

    If you insist on using webforms, another solution could be the AJAX Control kit. Simply create a ModalPopup and have you confirm buttons inside that.

    Read more here: http://www.asp.net/ajax/ajaxcontroltoolkit/Samples/ModalPopup/ModalPopup.aspx

提交回复
热议问题