html button runs javascript: how to make it see server validators?

  • Thread starter Thread starter Bishoy George
  • Start date Start date
B

Bishoy George

I have an html button that reads a text box and runs a javascript.
I made a Required Validator on that text box , any web button follows that
validator.
My html button does not follow the validator
I want to force my html button to follow the validator, how to do it?
Any help is very appreciated...
 
The validator calling code is generated for the Server controls for which
the 'Control To Validate' property is set. You could simply change your HTML
button to a server side control byt right clicking it and chosing Run at
server. Alternatively you could examine the code and copy/cludge it to call
the validator scripts.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top