Hi,
I have very simple code:
<asp:TextBox ID="TextBox1" runat="server"/>
<asp:RequiredFi eldValidator ID="RequiredFie ldValidator1" runat="server"
ControlToValida te="TextBox1"
ValidationGroup ="1"> <asp:Button ID="Button1" runat="server"
Text="Button 1" ValidationGroup ="1"
CausesValidatio n="true" />
I would like RequiredFieldVa lidator1 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
RequiredFieldVa lidator1 from firing too early?
thanks in advance for any info
Pawel Pabich
I have very simple code:
<asp:TextBox ID="TextBox1" runat="server"/>
<asp:RequiredFi eldValidator ID="RequiredFie ldValidator1" runat="server"
ControlToValida te="TextBox1"
ValidationGroup ="1"> <asp:Button ID="Button1" runat="server"
Text="Button 1" ValidationGroup ="1"
CausesValidatio n="true" />
I would like RequiredFieldVa lidator1 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
RequiredFieldVa lidator1 from firing too early?
thanks in advance for any info
Pawel Pabich
Comment