<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="UploadImages.aspx.cs" Inherits="Axium.Web.Admin.tinymce.jscripts.tiny_mce.themes.advanced.UploadImages" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <p>Only .jpg, .png, .gif images are supported</p>
        <asp:FileUpload id="filMyFile" type="file" runat="server" />
        <asp:Button ID="SendBtn" runat="server" Text="Upload" onclick="UploadBtn_Click" />
        <br />
        <asp:RegularExpressionValidator ID="revImage" runat="server" 
            ControlToValidate="filMyFile" ErrorMessage="This file type is not supported." 
            ValidationExpression="^.*\.((j|J)(p|P)(e|E)?(g|G)|(g|G)(i|I)(f|F)|(p|P)(n|N)(g|G))$"></asp:RegularExpressionValidator>
        <br />
        <asp:RequiredFieldValidator ID="UploadRequireValidator" runat="server" 
            ErrorMessage="! Please Input A file" ControlToValidate="filMyFile"></asp:RequiredFieldValidator>
    </div>    
    </form>
</body>
</html>
