How to validate an integer in Asp.net to fall into multiple intervals with built-in validation (or a range with exception)?

前端 未结 0 704
臣服心动
臣服心动 2020-12-01 17:28

I have an integer that can fall in range from -1000 to 1000 but cannot be zero. I cannot find any built-in validation that can fix this:

  • Range can be only used
相关标签:
回答
  • 消灭零回复
提交回复
热议问题