I have a dialog that has a table, a textbox and two buttons in the content template. one of the buttons is set as the accept and close button event for the dialog and the other button calls a function to validate the input. There are no triggers on the call back pannel, the execute is fired manually. When The user clicks the Add button it validates the value and alerts them to any problems. If there was a problem, after the alert is acknowledged the validateInput function sets focus to the txtInput control.
I expected the dialog to remain open so the user can correct any problems in the input but the dialog closes. The call back panel execute is not called and the dialogs close method is not called. Any ideas what I'm doing wrong?
Code: HTML/ASPX
<ContentTemplate>
<eo:CallbackPanel ID="CallbackPanel1" runat="server">
<asp:TextBox ID="txtInput" runat="server"></asp:TextBox>
<asp:Button ID="btnValidate" runat="server" Text="Add" onclientclick="validateInput(this)"/>
<asp:Button ID="btnClose" runat="server" Text="Close"/>
<table>
.
. (some rows)
.
</table>
</eo:CallbackPanel>
</ContentTemplate>