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

<!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>
    
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:Label ID="Label1" runat="server" Font-Bold="True" Font-Size="X-Large" 
            Text="动态上传图像并显示"></asp:Label>
      <br /> 
        <asp:Label ID="Label2" runat="server" Text="———————————————————————"></asp:Label>
        <br /> <br /> 
    <asp:Label ID="Label3" runat="server" Text="请选择上传并显示的图像"></asp:Label>
        <br />
        <asp:FileUpload ID="FileUpload1" runat="server"  Width ="300px" />
        <br />
        <br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:Button ID="Button1" runat="server" Text="开始上传图像" onclick="Button1_Click" />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:Button ID="Button2" runat="server" Text="显示图像" onclick="Button2_Click" />
        <br />
        <asp:Label ID="Label5" runat="server" Text="———————————————————————"></asp:Label>
        <br />
        <asp:Label ID="Label4" runat="server" BackColor="#FFFFCC" Text="上传图像提示信息："></asp:Label>
        <br />
        <br />
    <asp:Label ID="Label6" runat="server" Text="显示的图像"></asp:Label>
        <br />
        <asp:Label ID="Label7" runat="server" Text="———————————————————————"></asp:Label>
        <br />
        <asp:Image ID="Image1" runat="server" Height="223px" Width="370px" />
        <br />
        <br />
    </div>
    
    </form>
</body>
</html>
