C
COHENMARVIN
I have a problem that sounds simple but seems impossible with asp.net.
I calculate a variable in the Page_Load event, call it X. Then I want
my range validators to fire when a textbox value is greater than X.
They should give an error message, both as a messagebox and inline in
the page. I can't get the range validators to use X. I get syntax
errors when I try. I tried Custom Validators and got the same problem.
So now I want to try using client side javascript with forms. This may
not work either, because I calculate X in page_load, and I don't know
how to communicate X to the javascript. But forget that for now, does
anybody know how to intercept the SUBMIT click of an asp.net form and
use client side javascript validation on it?
I calculate a variable in the Page_Load event, call it X. Then I want
my range validators to fire when a textbox value is greater than X.
They should give an error message, both as a messagebox and inline in
the page. I can't get the range validators to use X. I get syntax
errors when I try. I tried Custom Validators and got the same problem.
So now I want to try using client side javascript with forms. This may
not work either, because I calculate X in page_load, and I don't know
how to communicate X to the javascript. But forget that for now, does
anybody know how to intercept the SUBMIT click of an asp.net form and
use client side javascript validation on it?