So, let's get started! First of all we’ll download jQuery js file, SimpleModal js file and css file and add references to them in our master page:
<link type='text/css' href='/Sample/Scripts/SimpleModal/css/confirm.css' rel='stylesheet' />
We already have the means to show the popup but we still need to trigger it on button clicked.
If we you are using ASP.NET validators you might want to show the confirmation pop up only the page is valid (Page_IsValid), there is no point of asking for confirmation if the action cannot be carried out anyways! The variable initialization outside the function guarantees that our function won’t break if there is no ASP.NET validator in the page.
Well, client-side wise we are done, here it goes a usage sample.
Here goes the implementation of the ConfirmButton control
And that's it, I hope this helps!UPDATE: You can find the code of this post here