Validate a long type input
        Posted  
        
            by Santiago
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Santiago
        
        
        
        Published on 2009-09-02T23:08:35Z
        Indexed on 
            2010/04/10
            7:03 UTC
        
        
        Read the original article
        Hit count: 521
        
I'm trying to validate that a user only enters a long value as input (long bigger than 0 actually).
Compare and Range validator has DataTypeCheck for int values only. I was planning on using this class in a CustomValidator but then I would need to write both, client and server side validation code.
Do you know of any other good way of doing this? Thanks!
© Stack Overflow or respective owner