What are validator? Name the Validation controls in asp.net?
How do u disable them?

Answers were Sorted based on User's Feedback



What are validator? Name the Validation controls in asp.net? How do u disable them?..

Answer / hiteshj78

Validator means checking inputed data in any field like
textBox or dropdownbox any other which we want to validate
at client side using sever tag.

Following are type of validator control in asp.net.
1. Ranage validator control
2. RequireFieldvalidator control
3. CompareValidator control
4. RegularExpressionValidator control
5. CustomValidator control
6. ValidationSummary control

if we mention in our page but want to disable just use the
property of validator control causevalidation=false.

Is This Answer Correct ?    2 Yes 0 No

What are validator? Name the Validation controls in asp.net? How do u disable them?..

Answer / dilip

In addition of the above answer, it is interesting to know
the "Turning off Client-side Valiation".

Because validation server contols provide clients with
client-side validations automatically, you might, at times,
want a way to control the behavior.

It is quite possible to turn off the client-side
capabilities of these controls so that they don't
independently send client-side capabilities to the
requestor. U can turn off this functionality.

The first is at the control level. Each of the validation
server controls has a property called EnableClientScript.
This property is set to True by default, but setting it to
False prevents the control from sending out a Javascript
function for validation on the client. Instead, the
validation check is done on the server.

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More ASP.NET Interview Questions

How would you get ASP.NET running in Apache web servers - why would you even do this?

1 Answers   Siebel Systems,


How we can force all the validation controls to run?

0 Answers  


hi ans dis qstn. "what is d max size of query string. If it exceeds does it give error. if yes wt error it gvs, if no gv the reason" thnx in advance

3 Answers  


What are Session states available and its Uses?

2 Answers   iLogic,


Explain automatic memory management in .net.

0 Answers  






How asp.net mvc differs from asp.net web forms? : asp.net mvc

0 Answers  


What are Authentication mechanisms in .Net?

6 Answers   Accenture,


How is the asp.net mvc architecture different from others? : asp.net mvc

0 Answers  


Whats the use of @ Register directives ?

4 Answers  


I am having four text boxes in my web application. I am setting Required Field validator to each Text box. And I am having two buttons in my application. If i clicked the first button only first two text box validation will get fire. Dont show error message for remaining two text box. If i clicked second button last two text box validation will get fired. It will not consider the first two validation controls. That is how to enable and disable the validation controls.

4 Answers  


What is difference between asp.net and asp.net mvc? : Asp.Net MVC

0 Answers  


What are the advantages of using session?

0 Answers  


Categories