RegularExpressionValidator not firing on white-space entry

前端 未结 5 1355
说谎
说谎 2020-12-07 01:54

I want to validate string containing only numbers. Easy validation? I added RegularExpressionValidator, with ValidationExpression=\"/d+\".

Looks okay - but nothing

5条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-07 02:50

    Try using ^\d+$ to force the digits to fill the entire line. ^ = line start $ = line end

提交回复
热议问题