If we add a textbox and give the required field
validator,and i add two radio buttons 1 is yes another one
is No.And i add another one server control button ,if i
click the button ,if the radio button Yes is checked the
validation control is fired ,if no the validation control
is not fired.So what you used to solve this problem.
Answer Posted / yogesh sharma
Set both radio buttons AutoPostBack property to true.
and following code in page_load:
if (RadioButtonNo.Checked == true)
{
this.Button1.CausesValidation = false;
}
else
{
this.Button1.CausesValidation = true;
}
| Is This Answer Correct ? | 16 Yes | 9 No |
Post New Answer View All Answers
Describe the master page.
What is the latest version of asp.net?
Explain different authentication modes in asp.net?
What is microsoft windows sharepoint services?
What is the basic difference between asp and asp.net?
5. What three Specific Job Positions do you target from Swatz Oils GROUP U.K?
What is the purpose of url encoding?
Is asp.net and .net same?
Explain program to call the js function when the change is being made in the dropdown list made in asp.net mvc? : asp.net mvc
What is the difference between c# and .net?
Explain the significance of routing? : asp.net mvc
Explain the difference between asp & asp.net.
Why cyclomatic complexity is important?
What is event in asp.net?
What is a form tag?