Results 1 to 4 of 4

Thread: How to unlimit characters entered in textbox?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Dec 2006
    Posts
    73

    How to unlimit characters entered in textbox?

    Hi guys,

    I have this textbox for email address, I used regular expression to filter the characters the way I want.. However I need to unlimit the characters for further entries of email addresses,.. How could I possibly solve this using RegularExpressionValidator's ValidationExpression property? thanks..

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: How to unlimit characters entered in textbox?

    I would suggest that you require a semicolon as a separator. You can then split the TextBox contents on the semicolon character and then use your regex on each substring.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: How to unlimit characters entered in textbox?

    Ah, I just read your post a little more carefully and realised that you're using an ASP.NET validator. My suggestion may well not be applicable in that case, although I'm not a Web developer so I don't know for sure. I'm guessing that you could edit your pattern to account for a delimiter like a semicolon but I don't know exactly how offhand as I'm certainly not a regex expert.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Dec 2006
    Posts
    73

    Re: How to unlimit characters entered in textbox?

    hi hmcilhinney,

    Thank you so much, you have a point there. I will look for a solution based on your suggestion. I will let you know once I solved it. =) happy new year to you!

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