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
How do I force the dispose method to be called automatically, as clients can forget to call dispose method?
If Instancing = Single use for ActiveX Exe, how will this be executed if there are 2 consecutive client requests ?
What is the difference between c# and .net?
COM+ Used ________________ Isolation Level
What can we do with asp.net?
How many types cache in asp net?
Is asp.net different from asp? If yes, explain how?
How do http sessions work?
Is asp.net mvc front end or backend? : Asp.Net MVC
How can you make sure that web api returns json data only?
Explain Areas in MVC?
Explain the use of errorprovider control in .net?
How can we create pie chart in asp.net?
How to register exception filter globally?
What is the difference between viewstate and hidden field in asp.net?