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
List of words of preprocessor in .net?
What does the hotspot class in .net do?
Any one can tell how we store tiff format images in database and retrive from the database(need for tiff format only)
What is a postback ispostback and autopostback in asp net?
How can we identify that the page is post back in asp net?
What is meant by server side scripting?
How many types of sessions in asp.net?
Which object wraps the state or data of a user?
What is csrf attack in asp.net?
What is the difference between cache and cookies?
What is the difference between session object and application object?
What is a web farm?
What is difference between viewstate and session in asp net?
How many types of triggers are there in update panel?
What do you mean by marshalbyref?