Hi,
Try to place a CustomValidator
outside of the CallbackPanel. You do not need to do anything else on this CustomValidator except for placing it in the form. The following code demonstrates a working example:
Code: HTML/ASPX
<eo:CallbackPanel runat="server"
id="CallbackPanel1" Triggers="{ControlID:Button1;Parameter:}">
<asp:Button runat="server" ID="Button1"
OnClick="Button1_Click" Text="Button1" />
<asp:Panel runat="server" ID="Panel1" Visible="False">
<asp:TextBox runat="server" ID="TextBox1"></asp:TextBox>
<asp:RequiredFieldValidator runat="server"
ID="RequiredFieldValidator1" ControlToValidate="TextBox1"
ErrorMessage="test"></asp:RequiredFieldValidator>
<asp:Button runat="server" ID="Button2" Text="Button2" />
</asp:Panel>
</eo:CallbackPanel>
<asp:CustomValidator ID="CustomValidator1" runat="server"
ErrorMessage="CustomValidator"></asp:CustomValidator>
Code: C#
protected void Button1_Click(object sender, EventArgs e)
{
Panel1.Visible = true;
}
This should solve the problem for you.
Thanks!