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
How is session id generated?
Explain how caching in asp.net 2.0 is different from caching in asp.net 1.1?
How do u declare static variable and how it is declared and what is its lifetime?
Where are session variables stored?
What is the difference between dispose() and finalize()?
How can you handle exceptions in asp.net?
List the types of authentication supported by asp.net?
How does a web application session work?
What is the maximum number of classes that can be contained in one dll file?
How can we inherit a static variable?
Explain swagger components.
How would ASP and ASP.NET applications run at the same time on the same server?
What is the viewstate in asp.net?
What are the types of authentication in asp.net?
What do you mean by authentication?