S
Shahar
hi
I have the following problem: I have two button, tow textboxes and two
RequiredFieldValidator controls, like that:
<form id="Form1" method="post" runat="server">
<asp:TextBox id="TextBox1" runat="server"></asp:TextBox>
<asp:RequiredFieldValidator ControlToValidate="TextBox1"
id="RequiredFieldValidator1" runat="server"
ErrorMessage="*"></asp:RequiredFieldValidator>
<asp:Button id="Button1" runat="server" Text="Button"></asp:Button>
<br><br>
<asp:TextBox id="Textbox2" runat="server"></asp:TextBox>
<asp:RequiredFieldValidator ControlToValidate="TextBox2"
id="Requiredfieldvalidator2" runat="server"
ErrorMessage="*"></asp:RequiredFieldValidator>
<asp:Button id="Button2" runat="server" Text="Button"></asp:Button>
</form>
Can I make the RequiredFieldValidator1 to response only to Button1 and
RequiredFieldValidator2 response only to Button2 ?
Thanx.
I have the following problem: I have two button, tow textboxes and two
RequiredFieldValidator controls, like that:
<form id="Form1" method="post" runat="server">
<asp:TextBox id="TextBox1" runat="server"></asp:TextBox>
<asp:RequiredFieldValidator ControlToValidate="TextBox1"
id="RequiredFieldValidator1" runat="server"
ErrorMessage="*"></asp:RequiredFieldValidator>
<asp:Button id="Button1" runat="server" Text="Button"></asp:Button>
<br><br>
<asp:TextBox id="Textbox2" runat="server"></asp:TextBox>
<asp:RequiredFieldValidator ControlToValidate="TextBox2"
id="Requiredfieldvalidator2" runat="server"
ErrorMessage="*"></asp:RequiredFieldValidator>
<asp:Button id="Button2" runat="server" Text="Button"></asp:Button>
</form>
Can I make the RequiredFieldValidator1 to response only to Button1 and
RequiredFieldValidator2 response only to Button2 ?
Thanx.