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 can we provide the WebParts control functionality to a server control?
What does the hotspot class in .net do?
How we implement web farm and web garden concept in asp.net?
Can I combine classic asp and asp.net pages?
while developing webservices if i want some users to use my webservice only how can i give security to my webservice?
What is asp.net ajax?
What are the events that happen when a client requests an asp.net page from iis server?
Explain the concept of View Model in MVC?
State differences between MVC and WebAPI
What is GAC in ASP.NET 2.0
What is session authentication?
How to handle errors in Web API?
What is connection pooling and how to enable and disable connection pooling?
What is the file extension of web service?
How to implement form based authentication in asp.net application?