Devi
Devi

Reputation:

Custom Validation

I am having two textboxes and a submit button. I have applied Custom validation to the First TextBox. When i am loosing my focus from the first textbox, Custom validator is doing validation.But i want that validation on Button Click only.

Upvotes: 0

Views: 648

Answers (2)

Hemant Kothiyal
Hemant Kothiyal

Reputation: 4142

I think you did your custom validation at page load method. I don't know where you want validation at client side or at server.

  1. You can use validation control / javascript for client side validation
  2. For server side you can write code of validation at button click.

Upvotes: 0

Muhammad Akhtar
Muhammad Akhtar

Reputation: 52241

Validate using javascript... on button click call javascript method, where you can check textbox value and prompt message.

Upvotes: 1

Related Questions