Best way to test for numeric in my Gridview.

  • Thread starter Thread starter tshad
  • Start date Start date
T

tshad

I have have a template column in my GridView with a textbox that accepts a
dollar amount and I want to check to see if the value is numeric as the
person exits the field?

Can I use a Validator control in the GridView to check the value?

Thanks,

Tom
 
Hello tshad,

why not to use the javascript and not check what was inserted
instead of making validation on server side

---
WBR,
Michael Nemtsev [.NET/C# MVP] :: blog: http://spaces.live.com/laflour

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo


t> I have have a template column in my GridView with a textbox that
t> accepts a dollar amount and I want to check to see if the value is
t> numeric as the person exits the field?
t>
t> Can I use a Validator control in the GridView to check the value?
t>
t> Thanks,
t>
t> Tom
t>
 
Michael Nemtsev said:
Hello tshad,

why not to use the javascript and not check what was inserted
instead of making validation on server side

Don't the Validators work on the client side?

Thanks,

Tom
---
WBR, Michael Nemtsev [.NET/C# MVP] :: blog:
http://spaces.live.com/laflour
"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo

t> I have have a template column in my GridView with a textbox that
t> accepts a dollar amount and I want to check to see if the value is
t> numeric as the person exits the field?
t> t> Can I use a Validator control in the GridView to check the value?
t> t> Thanks,
t> t> Tom
t>
 
Back
Top