code:
@Html.TextBoxFor(x => x.PercentNos, new {@class = "percentage-numbers"})
How to set the number limit from 0 to 100 in @html.textboxfor on cshtml view page in mvc4?
@html.textboxfor
You can use the Range attribute to limit input from 0 to 100. You apply this attribute to the (target) property of the model that you use in your view.
[Range(0,100)] public int PercentNos { get; set; }
Source: https://habr.com/ru/post/1479316/More articles:Hash functions that are used and more popular - securitysupport for different screen sizes on the phone / jQuery mobile - javascriptdetect events on powerpoint shapes from C # - .netAbout Haskell GADTs - haskellCan I debug directly the iOS application for iPhone-5 (armv7s), built only for armv6 and armv7? - debuggingSelect a column from 1 to 10 rows of ActiveCell in Excel - vbaHow to efficiently compare a string with a short string literal - chow to get value hidden in C # when it is set by jquery after postback - jqueryhttps://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1479320/which-version-is-this-compare-a-bare-source-tree-with-the-repository&usg=ALkJrhgXMhpYJDWmedoBKVzOk2DOLUEHSQHow to add a timer to Google Forms for school quiz? - javascriptAll Articles