hi,
I have a panel inside and ajax updatepanel which I am using with the modalpopupextender. The panel is tied to a button and pops up when the button is clicked. I am trying to popup the panel when customvalidator Server validate event is activated like
protected void CustomValidator1_ServerValidate(object source, ServerValidateEventArgs args)
{
if (1 == 1)
{
args.IsValid=false;
//ModalPopupExtender1.Show();
}
else
{
//ModalPopupExtender1.Hide();args.IsValid = true;
}
}
This does not work. the panel just stays on all the time and does not exhibit any of the modalpopup attributes(background, position, etc). The panel justshows up where it is on the bottom of the page. Does any body have a solution?
Thanks,
Mo