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 / smriti

Hi,
We can add the code in page_load

If Me.RadioButton1.Checked = True Then
Button1.CausesValidation = True
Else
If Me.RadioButton2.Checked = True Then
Me.Button1.CausesValidation = False
End If
End If

Is This Answer Correct ?    37 Yes 15 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are uri parameters?

992


Can we override the enablepartialrendering property of the scriptmanager class?

1081


What is side-by-side execution? Can two applications, one using a private assembly and other using a shared assembly, be stated as side-by-side executables?

958


What are the 3 levels at which content pages can be attached to Master Page?

1038


How to find out what version of asp.net I am using on my machine?

1055


What is true about application service provider?

868


What is a user developed application?

885


Which type if caching will be used if we want to cache the portion of a page instead of whole page?

865


What is the difference between pathparam and queryparam?

990


What is the difference between sealed vs static class?

1032


What are the various ways to send content from one page to another?

882


What is the concept of postback in asp.net?

1003


Explain what does mvc represent in asp.net? : asp.net mvc

990


Explain Areas in MVC?

1038


What does uri mean?

875