Hi,
Go to the checked changed event of your checkbox and disable the
RequireFieldValidator
(make sure the
AutoPostBack
property of your
CheckBox
is set to
true
). Try this:
protected void checbox1_CheckChanged(object sender, EventArgs e)
{
if(checkbox1.Checked)
{
RequiredFieldValidator1.Visible = false;
RequiredFieldValidator2.Visible = false;
}
else
{
RequiredFieldValidator1.Visible = false;
RequiredFieldValidator2.Visible = false;
}
}
--Amit