开发者

I need masked textbox in asp.net

  • only numbers must be in that textbox
  • that entries have to be in 100 between 500
  • TextBox Needed to include 3 Decimal Places

I don't want any mistakes while values inserting to database.

Do I need to use jQuery开发者_运维问答 or ASP.NET Validation Controls?

If jQuery is the useful one, then which plugin will I use? Or if it is asp.net RegEx Validator, which Validation Expression will I use? Or is there any free ASP.NET Extended TextBox ?


This jquery plugin works great, and it's very customizable. http://digitalbush.com/projects/masked-input-plugin/#demo

Remember, even if the control/plugin you use is very good and limits the user to what you want, you should still verify on the server side because users can bypass your controls with cross-site scripting


Take a look at the MaskedEditExtender from the AjaxControlToolkit. It might be what you need.


Look at the Ajax Toolkit and use the Masked Edit Extender, its very easy to use :-) http://www.asp.net/ajaxlibrary/act_MaskedEdit.ashx

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜