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 / smriti
Hi,
We can add the code in page_load
If Me.RadioButton1.Checked = True Then
Button1.CausesValidation = True
Else
If Me.RadioButton2.Checked = True Then
Me.Button1.CausesValidation = False
End If
End If
| Is This Answer Correct ? | 37 Yes | 15 No |
Post New Answer View All Answers
What are uri parameters?
Can we override the enablepartialrendering property of the scriptmanager class?
What is side-by-side execution? Can two applications, one using a private assembly and other using a shared assembly, be stated as side-by-side executables?
What are the 3 levels at which content pages can be attached to Master Page?
How to find out what version of asp.net I am using on my machine?
What is true about application service provider?
What is a user developed application?
Which type if caching will be used if we want to cache the portion of a page instead of whole page?
What is the difference between pathparam and queryparam?
What is the difference between sealed vs static class?
What are the various ways to send content from one page to another?
What is the concept of postback in asp.net?
Explain what does mvc represent in asp.net? : asp.net mvc
Explain Areas in MVC?
What does uri mean?