日期:2014-05-17 浏览次数:20419 次
<input type="file" id="File1" name="File1" runat="server" style="width: 587px; height: 20px;" class="TextLine" /> <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="File1" ErrorMessage="只能上传图片格式" ValidationExpression="^.*?\.(jpg|jpeg|bmp|gif|JPG|GIF|png|PNG|BMP|ico|)$" ValidationGroup="a"></asp:RegularExpressionValidator> <asp:Label ID="Label3" runat="server" Text="(建议图片大小为:296px*200px)" ForeColor="#404040"></asp:Label> <br /> <input type="file" runat="server" id="File2" style="width: 587px; height: 20px;" class="TextLine" /> <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="File2" ErrorMessage="只能上传图片格式" ValidationExpression="^.*?\.(jpg|jpeg|bmp|gif|JPG|GIF|png|PNG|BMP|ico|)$" ValidationGroup="a"></asp:RegularExpressionValidator> <asp:Label ID="Label6" runat="server" Text="(建议图片大小为:296px*200px)" ForeColor="#404040"></asp:Label> <br /> <input type="file" runat="server" id="File3" style="width: 587px; height: 20px;" class="TextLine" /> <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" ControlToValidate="File3" ErrorMessage="只能上传图片格式" ValidationExpression="^.*?\.(jpg|jpeg|bmp|gif|JPG|GIF|png|PNG|BMP|ico|)$" ValidationGroup="a"></asp:RegularExpressionValidator> <asp:Label ID="Label7" runat="server" Text="(建议图片大小为:296px*200px)" ForeColor="#404040"></asp:Label> <br /> <input type="file" runat="server" id="File4" style="width: 587px; height: 20px;" class="TextLine" /> <asp:RegularExpressionValidator ID="RegularExpressionValidator4" runat="server" ControlToValidate="File4" ErrorMessage="只能上传图片格式" ValidationExpression="^.*?\.(jpg|jpeg|bmp|gif|JPG|GIF|png|PNG|BMP|ico|)$" ValidationGroup="a"></asp:RegularExpressionValidator>