Results 1 to 3 of 3

Thread: [1.0/1.1] Regular Expression validator not working

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2006
    Posts
    11

    [1.0/1.1] Regular Expression validator not working

    I am trying to validate the text field to check it contains only positive integers but its not working i have tries several regular expressions.Can any one send me a valid regular expression to check that the text fields contain only positive numbers.
    Please help ma ASAP

  2. #2
    PowerPoster 2.0 Negative0's Avatar
    Join Date
    Jun 2000
    Location
    Southeastern MI
    Posts
    4,367

    Re: [1.0/1.1] Regular Expression validator not working

    Have you tried:

    Code:
    new Regex(@"^\d+$")

  3. #3
    Frenzied Member
    Join Date
    Mar 2006
    Location
    Pennsylvania
    Posts
    1,069

    Re: [1.0/1.1] Regular Expression validator not working

    if textbox.text > 0?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width