开发者

Delimiters inside a textbox

I have a spec that is saying that a certain field needs to be in the format "XX/XXXX/XXXXX". How do I add in read-only /'s inside 开发者_如何学Goof a textbox?


Ajax toolkit has control: MaskedEdit.


The Masked Input Plugin for JQuery will let you require that users include the slashes in their input.


You are referring to a maskedtextbox. This isn't a standard asp.net control but several third party control libraries include masked textboxes.

Try googling asp.net Masked Textbox

http://www.asp.net/community/control-gallery/item.aspx?i=387

If you want to spend some money I use telerik controls for asp.net ajax telerik.com


You could write a javascript event handler that handles the onkeypress event and adds/removes slashes in the appropriate places.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜