in my application (asp.net) i have a filed ( phone code) and it contain a text box. and i want to restrict the user to enter only 4 letter after that the cursor should not print any character how can i write the code can u help me thank you
Share
Use the ‘maxLength’ property.
Full msdn documentation on the property: http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.textbox.maxlength(v=VS.100).aspx