If you show this client side, you should use Javascript. A good way to do this is to use the jQuery dialog method. For instance:
Markup:
<div id="dialog-confirm">This is the content</div>
JavaScript:
$( "#dialog-confirm" ).dialog({ resizable: false, height:280, modal: true, buttons: { "Yes": function() { $( this ).dialog( "close" ); }, "No": function() { $( this ).dialog( "close" ); } } });
Fiddle: http://jsfiddle.net/ghLpV/
source share