<%@ page language="C#" autoeventwireup="true" inherits="Manage_UpLoad, App_Web_oj44ifac" %>

<!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>
    <link href="Css/css.css" rel="stylesheet" type="text/css" />
    <link href="Css/messageBox.css" rel="stylesheet" type="text/css" />
    <script language="JavaScript" type="text/javascript" >
        function UpLoadOk(type,path){
            var myHiddenField=top.document.getElementById("Pic"+type+"Td").getElementsByTagName("input")[0];
            if(myHiddenField!=null){
                myHiddenField.value=path;
            }
        }
  </script>
</head>
<body>
    <form id="form1" runat="server">
     <div>
        <asp:FileUpload ID="PicUpLoad" runat="server" />
        <asp:Button ID="UploadBt" runat="server" Text="上传图片"  CssClass="inputBt" OnClick="UploadBt_Click" />
        <asp:RequiredFieldValidator ID="PicRequiredFieldValidator" runat="server" ControlToValidate="PicUpLoad"
            Display="Dynamic" ErrorMessage="图片路径必须选择"></asp:RequiredFieldValidator>
        <asp:CustomValidator ID="PicCustomValidator" runat="server" ControlToValidate="PicUpLoad"
            Display="Dynamic" ErrorMessage="文件格式错误" OnServerValidate="PicCustomValidator_ServerValidate"></asp:CustomValidator>
         <asp:Label ID="UpLoadMsg" runat="server" Visible="false" CssClass="upLoadMsg">图片上传成功！</asp:Label>
     </div>
    </form>
</body>
</html>
