Ajax判断图片类型
ASP.NET中的Ajax判断图片类型
<asp:RegularExpressionValidator ID="FileValidator" runat="server" ControlToValidate="File1" Display="dynamic" ValidationExpression=".*([\.jpg]|[\.jpeg]|[\.jpe]|[\.gif]|[\.png]|[\.JPEG]|[\.JPG]|[\.GIF]|[\.bmp]|[\.BMP])$" ErrorMessage="jpg,jpeg,jpe,gif,png,JPEG,JPG,GIF,bmp,BMP"></asp:RegularExpressionValidator>