views:

50

answers:

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

i dont want any mistakes while values inserting to database.

Do i need to use jQuery or ASP.NET Validation Controls ?

if jQuery is useful one then which plugin will i use else for asp.net RegEx Validator which Validation Expression will i use? Or is there any free ASP.NET Extended TextBox ?

Thanks.

A: 

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

Matthew Jones
A: 

Look at the Ajax Toolkit and use the Masked Edit Extender, its very easy to use :-) http://www.asp.net/ajax/ajaxcontroltoolkit/Samples/MaskedEdit/MaskedEdit.aspx

Brent Barkman
+1  A: 

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

Ed B