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


Please Help Members By Posting Answers For Below Questions

What are the disadvantages of asp.net?

591


Define repository pattern in mvc.net? : asp.net mvc

517


When we use cookie less session? Explain its working?

569


Can we create a multiple user simultaneously ?

588


How do you design a website with multilingual support in ASP.NET ?

545






Elaborate differentiation between Cache and Application?

539


Any disadvantages in Dataset and in reflection ?

2827


Why Unload event of MasterPage Calls first in ASP.net ?

588


What are session cookies?

545


What is variable and constant in .net programming language?

397


What are the new features added from ASP to ASP.NET?

573


What are server-side comments in ASP.NET?

548


What is the state management in asp.net?

554


Explain the working of passport authentication.

545


Is asp.net free?

555