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.

Answers were Sorted based on User's Feedback



If we add a textbox and give the required field validator,and i add two radio buttons 1 is yes ano..

Answer / vijay

required field valodator is used to check where a browser
has entered a value in atextbox or not.

Is This Answer Correct ?    57 Yes 24 No

If we add a textbox and give the required field validator,and i add two radio buttons 1 is yes ano..

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

If we add a textbox and give the required field validator,and i add two radio buttons 1 is yes ano..

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

If we add a textbox and give the required field validator,and i add two radio buttons 1 is yes ano..

Answer / vijay

Set causes validation on the button to false. Add a custom
javascript function to the onclick event of that button. In
the javascript function check whether the radio button is
checked or not then. If checked call ValidatorEnable
(regValidatorId, true) and then call Page_ClientValidate()
function.

Is This Answer Correct ?    9 Yes 7 No

If we add a textbox and give the required field validator,and i add two radio buttons 1 is yes ano..

Answer / prakash

Required Field Validator does not depend upon any server
control either it is enable or disable.Means if radio
button1 is enable and radiobutton2 is disable at same time
then u press button then by default validation control
fired also in vice-versa case

Is This Answer Correct ?    11 Yes 12 No

If we add a textbox and give the required field validator,and i add two radio buttons 1 is yes ano..

Answer / ranga

Required validator checks for TextBox empty or not..

so to solve this problem

RequiredField validator--->properties..>validationGroup:sbmt
Button --->properties..>validationGroup:sbmt

Is This Answer Correct ?    7 Yes 8 No

Post New Answer

More ASP.NET Interview Questions

In ViewState How much lifespan items stored?

0 Answers   Siebel,


What is caching in asp.net?

0 Answers  


What does the "EnableViewState" property do? Why would I want it on or off?

2 Answers   Photon Infotech, Siebel Systems, Syntax Softtech,


What Are The Difference Between AutoEventWireup="true" and AutoEventWireup="False"

12 Answers   Phoenix Technologies,


What is an axd file?

0 Answers  


What is razor? : asp.net mvc

0 Answers  


Differentiate between a hyperlink control and a linkbutton control.

0 Answers  


how to implement some securty aspect in our application i.e 1.cookie poisioning. 2.data encryption. 3.forcefull browsing 4.sql/code injection 5.securing web app by using web services ........my question is how to implement these thing in our application is this done by hard coding or by help of some tool

0 Answers   Satyam,


Describe the disadvantage of cookies.

0 Answers  


What is query string with example?

0 Answers  


What are the Types of objects in ASP

0 Answers   Microsoft,


To get the values in two different controls to match which control you use it?

0 Answers   Siebel,


Categories