ajax modal popup
-
Hi im using ajax modal popupextender.. panel consisting of a captcha image,textbox and a button control.. How can i display error message in modal popup itself. if the condition is false i.e, if textbox value doesnt match with captcha...
Have a label to show the error message.Initially hide it, and show the when there is an error.. Are you asking something else?
Cheers!! Brij Check my latest Article :Exploring ASP.NET Validators
-
Have a label to show the error message.Initially hide it, and show the when there is an error.. Are you asking something else?
Cheers!! Brij Check my latest Article :Exploring ASP.NET Validators
-
once i click on the button in modal up it disappears whether textbox value is matches or not... I want to display in modal pop up itself if textbox value is false....
there must be postback on button click,after postback the modelpop will hide.Do one thing ,Attach a clientside event, validate the request if there is an error, show from javascript itself. and if there is no error continue with postback.
Cheers!! Brij Check my latest Article :Exploring ASP.NET Validators
-
once i click on the button in modal up it disappears whether textbox value is matches or not... I want to display in modal pop up itself if textbox value is false....
You can also solve this "issue" by calling the Show Method of the extender again within you button click-event (when you're also setting your error-message). This prevents the modal-popup from hiding. Example:
if (error)
{
lblError.Text ="Something is wrong";
myPopupExtender.Show();
}
else
{
// doing nothing hides the popup automatically during postback
}Michael