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 / vijay
Set causes validation on the button to false. Add a custom
javascript function to the onclick event of that button. In
the javascript function check whether the radio button is
checked or not then. If checked call ValidatorEnable
(regValidatorId, true) and then call Page_ClientValidate()
function.
| Is This Answer Correct ? | 9 Yes | 7 No |
Post New Answer View All Answers
Explain some of the major built-in objects in asp.net
What are the different validators in asp.net?
How will you do Redo and Undo in a TextControl?
Where is asp.net view state stored?
Please brief not about xsd,xslt & xml?
What is http session state?
What is form method?
What is connection pooling and how to enable and disable connection pooling?
Is it possible to write code in many languages in one asp.net project?
Which method is used to enforce garbage collection in .net?
Explain what the contents of cookie?
Explain the difference between sql invalidation and sql notification.
How you can access the properties and controls of master pages from content pages?
Why is string called immutable data type?
Explain how can we inherit a static member?