What are validator? Name the Validation controls in asp.net?
How do u disable them?
Answers were Sorted based on User's Feedback
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 |
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 |
How would you get ASP.NET running in Apache web servers - why would you even do this?
How we can force all the validation controls to run?
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
What are Session states available and its Uses?
Explain automatic memory management in .net.
How asp.net mvc differs from asp.net web forms? : asp.net mvc
What are Authentication mechanisms in .Net?
How is the asp.net mvc architecture different from others? : asp.net mvc
Whats the use of @ Register directives ?
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.
What is difference between asp.net and asp.net mvc? : Asp.Net MVC
What are the advantages of using session?