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 HTTP handlers in ASP.NET?
Difference between web user control and web custom control?
What is an imagemap in asp.net?
What is the difference between union and structure?
Difference between overriding and overloading?
When Cookies are expired in ASP.NET?
What is the displayafter property in updateprogress control?
How can we update records in gridview?Is there any appropriate code for it?
Define dll hell?
Why will you usually create an aspnet user account in the database for an asp.net web application?
What does asp stand for in asp.net?
Explain Areas in MVC?
What are different types of api?
What is session start?
What are demand-paging and pre-paging?