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


Please Help Members By Posting Answers For Below Questions

What are Caching techniques in .NET

820


What is the difference between Hash table and Array list?

619


What are the differences between primary foreign and unique keys?

787


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?

785


How do I create a web form?

725


What is full trust in asp.net?

753


what is command line compiler.what are the steps and how it is related to debugging.

1628


How many languages are supported by .NET at present time?

549


Which is better session or viewstate?

710


How do you implement sql caching in asp.net?

781


What is the Intermittent crashing of application in production?

778


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?

1649


Is asp.net outdated?

733


What is datagrid asp.net?

735


What is the procedure to create the environment for asp.net? : asp.net mvc

724