user1685652
user1685652

Reputation: 199

Validation of .net form

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

Answers (1)

Tim Schmelter
Tim Schmelter

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

Related Questions