<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Inventory_Photo_Upload.aspx.cs" Inherits="Base_Inventory_Inventory_Photo_Upload" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script type="text/javascript">
        function view_photo() {
            var pv = document.getElementById("photo_view");
            window.open(pv.src);
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
        <div style='width:400px;height:300px;text-align:center'>
            <a href='javascript:view_photo()'><asp:Image runat="server" ID="photo_view" style="max-height:80%;border:0px" /></a>
            <br />
            <asp:FileUpload ID="file_upload" runat="server" />
            <asp:Button ID="btn_upload" runat="server" onclick="btn_upload_Click" 
                Text="上传" />
            </div>
    </form>
</body>
</html>
