This is the code I'm using:
<telerik:RadTextBox ID="txtTitre" runat="server" Skin="Windows7" Width="250"> </telerik:RadTextBox> <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="*" ForeColor="Red" ControlToValidate="txtTitre" ValidationGroup="validationincident"></asp:RequiredFieldValidator>
And my ASP button:
<asp:Button ID="Button1" runat="server" Text="Soumettre ce ticket" OnClick="Button1_Click" OnClientClick="CloseDialog()" UseSubmitBehavior="false" ValidationGroup="validationincident" />
My problem: it seems that OnClientClick starts before ValidationGroup, because the JS function called in my OnClientClick closes my window.
Thus, the window closes, and the message "*" (error message) is displayed only when I re-open my window.
I need to check my ValidationGroup check! Thanks in advance for your help.
source share