- Simplemodal closing when I use CustomValidator server side validation in ASP.Net
- protected void btnExampleButton_Click(object sender, EventArgs e)
- {
- if (Page.IsValid)
- {
- //Logic to submit if valid
- }
- else
- {
- //If there are errors then keep the modal open
- btnOpenModal_ModalPopupExtender.Show();
- }
- }