S
simon
I have textBox and field validator on my panel:
<asp:TextBox id="txtID" Runat="server" Text="" Columns="5"></asp:TextBox>
<asp:RequiredFieldValidator id="Requiredfieldvalidator2" runat="server"
ErrorMessage="Enter in the typeID."
ControlToValidate="txtID"></asp:RequiredFieldValidator>
Then I have INSERT and CANCEL buttons.
If the user clicks INSERT button then the txtID should be client and server
validate,
but if user clicks CANCEL button, the validation should be omitted,
panel.visible=false and I show him something else.
Now If I clicks the Cancel button, the validation control doesn't allow me
to post the page.
Does anybody know the solution?
Thank you,
Simon
<asp:TextBox id="txtID" Runat="server" Text="" Columns="5"></asp:TextBox>
<asp:RequiredFieldValidator id="Requiredfieldvalidator2" runat="server"
ErrorMessage="Enter in the typeID."
ControlToValidate="txtID"></asp:RequiredFieldValidator>
Then I have INSERT and CANCEL buttons.
If the user clicks INSERT button then the txtID should be client and server
validate,
but if user clicks CANCEL button, the validation should be omitted,
panel.visible=false and I show him something else.
Now If I clicks the Cancel button, the validation control doesn't allow me
to post the page.
Does anybody know the solution?
Thank you,
Simon