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

what is the difference b/w .net 1.1 and 2.0 ?

2 Answers   Polaris,


How to retrieve user name in case of Window Authentication?

0 Answers  


Explain about Multi-Language integration?

0 Answers  


Suppose You Want A Certain Asp.net Function Executed On Mouseover For A Certain Button. Where Do You Add An Event Handler?

0 Answers   Siebel Systems,


Define state managenent?Descibe state managenent technique which maintain the information at server site focusing it IDS features and limitations?

1 Answers  






Hello, Using Visual Studio 2005 (VB) I am working to create a Web Site implementing the following: Within a gridView I have placed a dropdownlist control with a DataSourceID="SDSLkupList". SDSLkupList is a sqlDataSource used to store a lookup list for dropdownlist translation from ID to text. SDSLkupList contains the translation text and other fields related to the dropdown selection ID. (Thought it would be efficient to get everything at the same time.) I would like to provide the user the ability to select from the dropdownlist and, based on the selection, use labels to list related columns stored on the SDSLkupList in separate gridView columns. I have read that SqlDataSources are not meant to be used for individual controls. Since SDSLkupList contains all related information, is there a way to do a find using the dropdownlist selectedValue? (I was not able to discover one.) Otherwise, what should I use? It would need to set the labels on the gridView DataRowBound event as well as the SelectedIndexChanged events. Has anyone done this? Any help would be appreciated. Thanks in Advance. Neal

0 Answers  


List the events in page life cycle.

0 Answers  


What is jade template engine?

0 Answers  


Where sessions are stored in asp.net?

0 Answers  


Difference between abstract factory pattern and factory method pattern in .NET with example.

3 Answers   ACS, IBM, Keane India Ltd,


What are runtime hosts?

4 Answers   Microsoft,


How to integrate angular 8 with asp.net mvc 5? : Asp.Net MVC

0 Answers  


Categories