You can use the standard JavaScript confirm() function to display a popup and do Post Back in the case of Yes or No. For instance:
if (confirm('Question')) { __doPostBack('', 'Yes_clicked'); } else { __doPostBack('', 'No_clicked') }
Then on the server in Page_Load() do:
if (IsPostBack) { var result = Request.Params["__EVENTARGUMENT"]; }
You can also do this asynchronously by specifying the first parameter of the __doPostBack() function as the identifier of any update panel.
source share