Reputation: 199
Is it possible to use javascript validation and asp.net validators (required field validator) simultaneously on a single button click. Please help me
Upvotes: 0
Views: 78
Reputation: 460268
ASP.NET validators support clientside validation.
Have a look: ASP.NET Validation in Depth, chapter "Client-Side Validation"
You need to set EnableClientScript
to true
(but it's the default value anyway).
So the RequiredFieldValidator
checks on the client side if the user entered something.
Upvotes: 1