asp.net mvc validation must be a number custom error

前端 未结 10 1335
时光取名叫无心
时光取名叫无心 2021-02-06 01:14

I am new to asp.net and I have a problem. When the users insert in a editor for a decimal field something other than numbers, they get an error \"Field name\" is not a number. B

10条回答
  •  猫巷女王i
    2021-02-06 01:29

    Look for solution at the end of this page:

    http://jwwishart.wordpress.com/2010/03/22/custom-server-and-client-side-required-validator-in-mvc-2-using-jquery-validate/

    I checked this in my MVC 3 RTM project and it works well.

提交回复
热议问题