views:

189

answers:

2

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.

+1  A: 

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

Muhammad Akhtar
I am using Validator callout Extender. Can i use javascript function to show message in callout extender.
I don't have an idea about callout Extender..Post ur code.....
Muhammad Akhtar
A: 

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.
Hemant Kothiyal