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
Define authentication and authorization.
Explain about asp.net caching?
What is the use of execute non query in asp.net?
Tell me what is the request flow used for asp.net mvc framework? : asp.net mvc
What is tracing? Where is it used?
How is mvc different from asp.net? : Asp.Net MVC
Explain difference between dataset and datareader?
What are the ways of preserving data on a Web Form in ASP.NET?
What is postback pixel?
What are uri parameters?
Explain Session state management options in ASP.NET.
What is difference between session and viewstate?
What is a form tag?
What is viewstate in asp net with example?
What is difference Between Authentication and authorization?