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

List of words of preprocessor in .net?

946


What does the hotspot class in .net do?

1014


Any one can tell how we store tiff format images in database and retrive from the database(need for tiff format only)

2034


What is a postback ispostback and autopostback in asp net?

906


How can we identify that the page is post back in asp net?

944


What is meant by server side scripting?

962


How many types of sessions in asp.net?

1116


Which object wraps the state or data of a user?

1002


What is csrf attack in asp.net?

1035


What is the difference between cache and cookies?

1030


What is the difference between session object and application object?

1050


What is a web farm?

995


What is difference between viewstate and session in asp net?

1047


How many types of triggers are there in update panel?

1026


What do you mean by marshalbyref?

1104