开发者

How to give validation for jpg or jpeg image using validation control in asp.net

Can any please help me to place validat开发者_如何学Pythonion for fileupload control to accept only jpg and jpeg image format only using validation control in asp.net


Why not to write your own custom validator (server side validation) or a very simple jquery check binded to onclientclick (client validation) ?


^(([a-zA-Z]:)|(\{2}\w+)\$?)(\(\w[\w].*))+(.jpg|.png|.gif)$

use Regular Expression validator.... this as a validation expression

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜