Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / December 2007

Tip: Looking for answers? Try searching our database.

Best way to test for numeric in my Gridview.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
tshad - 18 Dec 2007 06:04 GMT
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
Michael Nemtsev [MVP] - 18 Dec 2007 09:20 GMT
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>
tshad - 18 Dec 2007 16:13 GMT
> 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:
[quoted text clipped - 9 lines]
> t> t> Tom
> t>

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.