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

Diff between web user control and web custom control?

716


can s/w quality assurance engineer switch field to programming side i m very much interested in programming but not much good in it

1666


What is the function of new view engine in asp.net? : asp.net mvc

730


What are session cookies?

739


What are the different methods of session maintenance in asp.net?

742


Give an example of cookie abuse.

791


Explain the concept of event bubbling in ASP.NET?

791


Explain the different parts that constitute ASP.NET application?

751


How can you enable impersonation in the web.config file?

762


Which dll handles the request of .aspx page?

738


Which browsers support the xmlhttprequest object?

700


What is cache in asp net?

720


What is actually returned from server to the browser when a browser requests an .aspx file and the file is displayed?

706


What is distributed system in asp.net?

748


Why we use asp.net for website development?

673