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 Caching techniques in .NET
What is the difference between Hash table and Array list?
What are the differences between primary foreign and unique keys?
If there are multiple update panels on the page say upd1 and upd2. There is a button placed in upd1. How can you stop upd2 to update when button placed in upd1 is clicked?
How do I create a web form?
What is full trust in asp.net?
what is command line compiler.what are the steps and how it is related to debugging.
How many languages are supported by .NET at present time?
Which is better session or viewstate?
How do you implement sql caching in asp.net?
What is the Intermittent crashing of application in production?
What is the basic purpose of the required field validator? How can you use a required field validator to check that the user changes the initial value of a text box? a listbox?
Is asp.net outdated?
What is datagrid asp.net?
What is the procedure to create the environment for asp.net? : asp.net mvc