Wednesday, March 21, 2012

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

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.

"Bishoy George" <bishoy@.bishoy.com> wrote in message
news:%23Fgvgz9wFHA.3740@.TK2MSFTNGP14.phx.gbl...
>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...

No comments:

Post a Comment