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

What is the difference between mechine.config and web.config?

740


Can I stream live content/events?

583


What tags do you need to add within the asp:datagrid tags to bind columns manually? How?

525


Define session in asp.net.

565


What is asp.net ajax?

558






Is asp.net and .net same?

549


What is the difference between page.registerclientscriptblock and page.registerstartupscript?

490


Is it true that a Web service must be written in .NET or not?

581


what is a .xap file? Explain with an example.

595


How does a content page differ from a master page?

510


Does google crawl redirects?

524


What is app_code folder in asp net?

543


What is a reflection?

590


Explain the different parts that constitute ASP.NET application?

571


How to communicate via Remote proxy with Client? a)MarshalByRef b)Marshal by Value or Any thing else?

1575