//On-Click event for the close button in the modal. This event hides the popup extender, which changes the visibilty of the modal. protected void CloseButton_Click(object sender, EventArgs e) { //ajax call to close the panel UserModalPopupExtender.Hide(); }