I'm currently uing the ConfirmButtonExtender and ModalpopupExtender and want to check a field once the person clicks submit and display in my ModalPopup that it is null and they need to fill it out or it will default to specific value. How would I go about
that?
Should I use the OnClick event from my button? I tried it but it's never called until I click ok on my confirmbutton.
Should I be using validation control? If so how can I use it with these extenders? Is it possible to do the validation on the modalpopup?
One idea is to handle the showing event of the modal. In there you would check the control in question to determine if it's empty/null and do whatever you want to the modal.
There could be issues when you have multiple instances of ConfirmButtonExtender with ModalPopupExtender in the controls that generate multiple rows. If you don't mind javascript libraries, try jQuery UI's dialog, at the right side part of page, see Modal
confirmation. http://jqueryui.com/demos/dialog/#modal-confirmation
One idea is to handle the showing event of the modal. In there you would check the control in question to determine if it's empty/null and do whatever you want to the modal.
What is the showing event? Are you referring to the animation event?
MasterV23
Member
113 Points
318 Posts
Using confirmbuttonextender and modelpopup how do you check fields during the popup?
May 29, 2012 02:57 PM|LINK
I'm currently uing the ConfirmButtonExtender and ModalpopupExtender and want to check a field once the person clicks submit and display in my ModalPopup that it is null and they need to fill it out or it will default to specific value. How would I go about that?
Should I use the OnClick event from my button? I tried it but it's never called until I click ok on my confirmbutton.
Should I be using validation control? If so how can I use it with these extenders? Is it possible to do the validation on the modalpopup?
Modalpopup
MetalAsp.Net
All-Star
112061 Points
18240 Posts
Moderator
Re: Using confirmbuttonextender and modelpopup how do you check fields during the popup?
May 29, 2012 06:47 PM|LINK
Modalpopup
chetan.sarod...
All-Star
65719 Points
11133 Posts
Re: Using confirmbuttonextender and modelpopup how do you check fields during the popup?
May 30, 2012 03:57 AM|LINK
Hello
There could be issues when you have multiple instances of ConfirmButtonExtender with ModalPopupExtender in the controls that generate multiple rows. If you don't mind javascript libraries, try jQuery UI's dialog, at the right side part of page, see Modal confirmation. http://jqueryui.com/demos/dialog/#modal-confirmation
You can combine the technique that use javascript to make the postback, http://wiki.asp.net/page.aspx/1082/dopostback-function/ when some button is clicked in the dialog.
http://forums.asp.net/t/1489818.aspx/1
Modalpopup
Senior Software Engineer,
Approva Systems Pvt Ltd, Pune, India.
MasterV23
Member
113 Points
318 Posts
Re: Using confirmbuttonextender and modelpopup how do you check fields during the popup?
May 30, 2012 12:47 PM|LINK
What is the showing event? Are you referring to the animation event?