Best way to test for numeric in my Gridview.

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
 
M

Michael Nemtsev [MVP]

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>
 
T

tshad

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>
 

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

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top