1,105,625 Community Members

How to put a limited input in a textbox

Member Avatar
masterfact18
Light Poster
43 posts since Jan 2011
Reputation Points: 0 [?]
Q&As Helped to Solve: 1 [?]
Skill Endorsements: 0 [?]
 
0
 

i would like to know hot to put a limited input in a textbox..
situation is like this
i put a textbox in a form then what i would like to happen is to accept only 2 number and will not accept the following number that is being pressed...please help...
newbie here!

Member Avatar
rishif2
Posting Whiz in Training
284 posts since Dec 2012
Reputation Points: 57 [?]
Q&As Helped to Solve: 58 [?]
Skill Endorsements: 4 [?]
 
0
 

use of MaxLength property of textbox and set it to 2

it will solve the issue

Member Avatar
masterfact18
Light Poster
43 posts since Jan 2011
Reputation Points: 0 [?]
Q&As Helped to Solve: 1 [?]
Skill Endorsements: 0 [?]
 
0
 

thanks...i found the maxlength in the properties...thanks!!

Question Answered as of 1 Year Ago by rishif2
You
This question has already been solved: Start a new discussion instead
Post:
Start New Discussion
View similar articles that have also been tagged: