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

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...
 
M

Mr Newbie

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

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top