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


Please Help Members By Posting Answers For Below Questions

How you can manage the state of application at the server side in ASP.NET?

566


Which ASP.NET configuration options are supported in the ASP.NET implementation on the shared web hosting platform?

647


What is the concept of view state in asp.net?

554


What is httpresponse?

502


How to implement role based security in asp.net mvc? : Asp.Net MVC

433






What is postback in asp net?

562


What is cookies in asp net?

517


Is it possible to create web application with both webforms and mvc?

529


Which platform does Microsoft .NET use for exchanging data between applications?

578


What is round trip in asp.net?

509


What are the cookies types in asp.net?

553


What is the difference between session and viewstate?

508


How does cookies work in asp net?

505


What is connection pooling and how to enable and disable connection pooling?

475


Which object encapsulates state or data of a user?

622