Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 24th, 2012  |  syntax: None  |  size: 0.34 KB  |  hits: 13  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Simplemodal closing when I use CustomValidator server side validation in ASP.Net
  2. protected void btnExampleButton_Click(object sender, EventArgs e)
  3. {
  4.     if (Page.IsValid)
  5.     {
  6.         //Logic to submit if valid
  7.     }
  8.     else
  9.     {
  10.         //If there are errors then keep the modal open
  11.         btnOpenModal_ModalPopupExtender.Show();
  12.     }
  13. }