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
How does session id work?
Are there any resources for drop-in replacements for the default css that comes with the ASP.NET Website template?
What is a web farm?
What is autopost?
What is the importance of aspnet_isapi.dll, inetinfo.exe andaspnet_wp.exe in the page loading process.
What is session and cookies in asp.net?
Is it possible for me to change my aspx file extension to some other name?
Define data caching?
What are web beacons used for?
Is it true that a Web service must be written in .NET or not?
Explain the Order of events in an asp.net page?
What are the two properties that are common on every validation control?
What is anonymous authentication?
Why do we need a web application session?
Why does my asp.net file have multiple tag with runat=server?