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 is difference between View State and Hidden Field in ASP.NET?
What does clearing cache?
Am not able to move the controls on the form freely in asp.net 3.5 even though I selected the position as relative or absolute for those controls. What should I do to overcome this?
What is voluum?
What is xaml? Are xaml file compiled or built on runtime?
Explain the updatepanel?
Is it possible to change the index of primary key on table?
What is the use of web.config file?
What are the options in ASP.NET to maintain state?
What is the difference between sealed vs static class?
What are the advantages and disadvantages of Using Cookies?
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?
Can a master page have more than one contentplaceholder?
What is global.asax file used for?
What is Cookies Less Session?