Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 different types of cookies in asp.net?

1021


What are the memory-mapped files?

1006


Name the two properties are on every validation control?

992


In which event of the page viewstate is available?

868


Explain page output caching?

985


What are the Types of objects in ASP

1092


How does the cookies work in asp.net?

1153


How does a web application session work?

1068


When cookie will expire?

985


Explain the difference between asp.net mvc and asp.net webforms

1051


A Web Service Can Only Be Written In .net. Is it True??

1054


Why SessionID changes in every request in asp.net?

968


Explain diff. Betn dataset and recordset?

1000


What is a web server? What are the load limits in it?

1124


What is an il?

1021