I want to format a text box in a web form to have "-" in a fixed position on page load and before the "-" it should accept only 3 characters. After entering 3rd character the user should not be allowed to remove or edit the "-" and cursor should automatically move to position next to "-".
How can i do this?
Loading
Suthish NairPosted Feb 13, 2011, 10:10 AM
By using ajaxcontroltoolkit.
http://www.asp.net/ajax/ajaxcontroltoolkit/samples/maskededit/maskededit.aspx
Or, jQuery: http://digitalbush.com/projects/masked-input-plugin/#demo