Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

.NET Forum


You are currently viewing our .NET Forum as a guest. Please register to participate.
Login



Reply
restricting min no of characters in asp.net text box
Old 03-02-2011, 07:50 PM restricting min no of characters in asp.net text box
DmitryS's Avatar
Skilled Talker

Posts: 84
Trades: 0
anybody suggest me regx for restricting min no of characters in asp.net text box control?
__________________
»
Please login or register to view this content. Registration is FREE
for web developers
»
Please login or register to view this content. Registration is FREE
- Interactive maps for websites
DmitryS is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 03-03-2011, 08:10 AM Re: restricting min no of characters in asp.net text box
Extreme Talker

Posts: 246
Trades: 0
I believe this should work:

.{5,}

5 or more characters.

check out http://www.regular-expressions.info/reference.html
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
stbuchok is offline
Reply With Quote
View Public Profile
 
Old 05-20-2012, 11:08 AM Re: restricting min no of characters in asp.net text box
Average Talker

Posts: 19
Location: Mumbai , India
Trades: 0
Why dont you use the MaxLength Property of the TextBox? Instead of using the Regex?
bzwiz is offline
Reply With Quote
View Public Profile Visit bzwiz's homepage!
 
Old 05-20-2012, 11:39 AM Re: restricting min no of characters in asp.net text box
chrishirst's Avatar
Defies a Status

Posts: 43,947
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
I don't think it matters after a year.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 05-20-2012, 12:08 PM Re: restricting min no of characters in asp.net text box
Average Talker

Posts: 19
Location: Mumbai , India
Trades: 0
Quote:
Originally Posted by chrishirst View Post
I don't think it matters after a year.
Yaa right...i checked it later after posting it lol...
bzwiz is offline
Reply With Quote
View Public Profile Visit bzwiz's homepage!
 
Reply     « Reply to restricting min no of characters in asp.net text box
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.20956 seconds with 11 queries