How do you perform validations?
Answers were Sorted based on User's Feedback
Answer / raviraj
When it comes to client side we can validate html controls
using javascript.ont the server side you can use validation
controls such as compare validator,range validator,custom
validator,required field validator and regular expression
validator.Based on our requirement we can use one or more
above mentioned validation controls at a time in an
application
Is This Answer Correct ? | 3 Yes | 1 No |
Answer / richard des jardins
Remember, Server Side Validation must always be performed,
then optionally Client Side validation to enhance the user
experience. On the server, you can write Server Side code
to perform the validation. On the Client, you can use any
of the .NET Validators or write JavaSCript and Regular
Expressions to enable validation. Both previous answers
were correct is the question was how to enable client side
validation. Always validate on the server and them
optionally on the client.
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / ashis
By Javascript and by using regular expression class.
Is This Answer Correct ? | 0 Yes | 2 No |
What is role-based security?
What is class and object in asp.net?
How does the cookies work in asp.net?
What language is asp.net written in?
Explain < @OutputCache% > and the usage of VaryByParam, VaryByHeader ?
please give a brief knowledge about these events ? page_render() page_prerender() page_unload page_loadcomplete page_preinit
What types of data validation events are commonly seen in the client-side form validation?
What is web configuration file and how to use in web application
What is Partial in ASP.NET 2.0?
What role “#&&” plays in a querysting?
how many session modes are available?some brief explnation
I am using a range validator and want to use dd mm yyyy format for accepting dates. I get a fairly generic "can't do that" type exception when I use this format for setting the minValue or maxValue properties for the range validator. How can I force it to accept my format?