hi folks,
I m using Ajax model popup Extender .How i get the at which button click on User either Ok or Cancel.I Need to write Dynamic logic on server side.
Please share some link or code snippest.
I want to Multiple times with Multiple messages.with Different Button like YES/NO, Ok/Cancel,or OK only .but in code behind.
How I achive
Thank you in advance
Loading


Khargesh RajputRank #616 · 3.9K reputationPosted Mar 13, 2015, 8:27 PM EDT
change close to ok
http://www.aspdotnet-suresh.com/2011/03/how-to-show-modalpopup-to-edit-gridview.html
http://csharpdotnetfreak.blogspot.com/2011/03/ajax-modalpopupextender-example-aspnet.html
http://www.codeproject.com/Tips/215040/ModalPopupExtender-from-Server-Side-Code
Abhijit PatilRank #700 · 3.4K reputationPosted Mar 13, 2015, 8:41 PM EDT
thank you for quick reply .I already saw that link but not get which i want.
How i get the user either click on ok button ya cancel button
how i get it.
Thank you in advance
Khargesh RajputRank #616 · 3.9K reputationPosted Mar 13, 2015, 8:47 PM EDT
http://www.aspsnippets.com/Articles/Server-Side-Code-Behind-Yes-No-Confirmation-Message-Box-in-ASPNet.aspx
for client side
http://www.aspsnippets.com/Articles/Confirmation-Confirm-box-with-Yes-No-Buttons-Options-using-AJAX-Modal-Popup-Extender-in-ASPNet.aspx
Abhijit PatilRank #700 · 3.4K reputationPosted Mar 13, 2015, 9:11 PM EDT
I want to show two ajaxmodelpopup extender .second will be depend on first ok button .but the problm is that when it show first when i click on ok it again goes to the page load .and again try to start .how i solve this problem
.
Khargesh RajputRank #616 · 3.9K reputationPosted Mar 13, 2015, 9:33 PM EDT
or
use update panel outside modal popup
or
check postback on pageload and if page postback then if you want to show modalpopup, write modalpopupid.show(); else modalpopuid.hide();