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 is an il?
What is variable and constant in .net programming language?
What are server side controls?
Explain About duration in caching technique
What is the difference between mechine.config and web.config?
Describe the difference between inline and code behind - which is best in a?
Can viewstate be accessed in another page?
What is the difference between user control and custom control?
What are the data controls available in asp.net?
What is the significance of attaching a profile while creating a user?
What is the difference between page-level caching and fragment caching?
Define repository pattern in mvc.net? : asp.net mvc
What is the significance of proxy user?
What is a web based system?
What is a ashx file?