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 / yogesh sharma
Set both radio buttons AutoPostBack property to true.
and following code in page_load:
if (RadioButtonNo.Checked == true)
{
this.Button1.CausesValidation = false;
}
else
{
this.Button1.CausesValidation = true;
}
Is This Answer Correct ? | 16 Yes | 9 No |
Post New Answer View All Answers
In your ASP.NET 2.0 web application you want to display an image that is selected from a collection of images. What approach will you use to implementing this?
What is data grid view in asp.net?
What are the new features added from ASP to ASP.NET?
Why we use dbms for projects? Why don’t we save any application data in separate files instead of dbms?
Which of the following .NET framework supports Web API?
Explain about solution explorer window?
What is protected configuration?
How does session work?
Explain the difference between webfarm and webgardens in .net?
Explain Life cycle of ASP.NET page when a request is made.
What is odata in web api?
Explain page output caching?
Explain the use of resource manager class in .net.
Describe SOA and the tenets of it?
How many types of cookies are there in asp.net?