Posted on: 3/22/2015 8:20:33 PM | Views : 655

I created a WebControl so that it could be used in several different places within my project, it's a form to enter information about a person (Name, Address, Phone, etc.).  When I use it within a form it is enclosed within a Panel along with an OK and Cancel button.  The enclosing form has an Add button that invokes the ModalPopup of the panel.  So far so good.  Within the WebControl there is a CheckBox which has AutoPostBack set to true.  If the user checks/unchecks the CheckBox which causes the PostBack the ModalPopup closes, which of course is not what I want to happen, nor what I would expect to happen.
Here is the relevant code for the ModalPopup:
<asp:Panel runat="server" ID="pNewPerson" CssClass="ModalPopupTPersons"> <div style="padding: 10px; margin: 1px; border: medium ridge #C0C0C0"> <SetupControls:VPersons runat="serv ...

Go to the complete details ...