P
Pawel Pabich
Hi,
I have very simple code:
<asp:TextBox ID="TextBox1" runat="server"/>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server"
ControlToValidate="TextBox1"
ValidationGroup="1"> <asp:Button ID="Button1" runat="server"
Text="Button 1" ValidationGroup="1"
CausesValidation="true" />
I would like RequiredFieldValidator1 to fire only when I hit Button1
button. But it also fires when
text box TextBox1 looses focus. For example when I finish typing and
hit TAB key. Is there any way in order to prevent
RequiredFieldValidator1 from firing too early?
thanks in advance for any info
Pawel Pabich
I have very simple code:
<asp:TextBox ID="TextBox1" runat="server"/>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server"
ControlToValidate="TextBox1"
ValidationGroup="1"> <asp:Button ID="Button1" runat="server"
Text="Button 1" ValidationGroup="1"
CausesValidation="true" />
I would like RequiredFieldValidator1 to fire only when I hit Button1
button. But it also fires when
text box TextBox1 looses focus. For example when I finish typing and
hit TAB key. Is there any way in order to prevent
RequiredFieldValidator1 from firing too early?
thanks in advance for any info
Pawel Pabich