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
What is the difference between ASP.NET Webforms and ASP.NET MVC?
Elaborate differentiation between Cache and Application?
What are assemblies and namespaces and explain the difference between them ?
How is my content secured from unauthorized access?
What is asp.net response object?
What is fulltrust?
What is sdlc process?
What role “#&&” plays in a querysting?
in which protocol ASP.NET WEB API Work?
How can I open ashx file in mobile?
How will you maintain versioning in asp.net 2.0?
What are the disadvantages of using session?
What is difference between Fragment Caching and Page Caching in ASP.NET?
Differentiate between file-based dependency and key-based dependency.
What is http only cookie?