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 are the disadvantages of asp.net?
Define repository pattern in mvc.net? : asp.net mvc
When we use cookie less session? Explain its working?
Can we create a multiple user simultaneously ?
How do you design a website with multilingual support in ASP.NET ?
Elaborate differentiation between Cache and Application?
Any disadvantages in Dataset and in reflection ?
Why Unload event of MasterPage Calls first in ASP.net ?
What are session cookies?
What is variable and constant in .net programming language?
What are the new features added from ASP to ASP.NET?
What are server-side comments in ASP.NET?
What is the state management in asp.net?
Explain the working of passport authentication.
Is asp.net free?