Im trying to use a modal popupextender as my Confirmation PopUP window. I create a table with all my custom styles and a message asking if they are sure they want to do it, and 2 buttons YES and NO. I went on the modalpopupextender properties and assigned
:
cancelbuttonID= btnNo , OkbuttonID= btnYES , as popupcontrolID= my custom table and as TargetcontrolID= the linkbutton I have inside the datalist.
When I click on the linkbutton the modal pop up shows ,very cool (would like to apply a animation but for somereasno the choices dont appear on the properties), but when I click either YES or NO it just goes away and dont execute nothing. What I would like
to do is for;
when the user clicks no, the modal disapears and nothing happens. When the user click YES I want the page to continue to the code behind which is the OnClick event.
What do I need to do in order for the YES button to continue with the web page operation?
Well made it work, with the use of another extender. Using the Confirmbuttonextender. I connected the 2 and bingo, my custom modal window behave as expected
Marked as answer by gindy39 on Apr 05, 2012 06:22 PM
Gindy39
Member
246 Points
99 Posts
Using a modalPopup inside a datalist
Apr 05, 2012 05:39 PM|LINK
Good day community.
Im trying to use a modal popupextender as my Confirmation PopUP window. I create a table with all my custom styles and a message asking if they are sure they want to do it, and 2 buttons YES and NO. I went on the modalpopupextender properties and assigned :
cancelbuttonID= btnNo , OkbuttonID= btnYES , as popupcontrolID= my custom table and as TargetcontrolID= the linkbutton I have inside the datalist.
When I click on the linkbutton the modal pop up shows ,very cool (would like to apply a animation but for somereasno the choices dont appear on the properties), but when I click either YES or NO it just goes away and dont execute nothing. What I would like to do is for;
when the user clicks no, the modal disapears and nothing happens. When the user click YES I want the page to continue to the code behind which is the OnClick event.
What do I need to do in order for the YES button to continue with the web page operation?
Thank you in advance
Gindy39
Member
246 Points
99 Posts
Re: Using a modalPopup inside a datalist
Apr 05, 2012 06:22 PM|LINK
Well made it work, with the use of another extender. Using the Confirmbuttonextender. I connected the 2 and bingo, my custom modal window behave as expected