<%@ 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>
    <style type="text/css">
        .style1
        {
            width: 81px;
        }
        .style2
        {
            width: 125px;
        }
        .style4
        {
            font-size: x-large;
            font-weight: bold;
            color: #FF00FF;
            font-family: 微软雅黑;
        }
        .style5
        {
            width: 99px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
        <table align="center" style="width: 589px">
            <tr>
                <td align="center" colspan = "4" class="style4">
                    动态获取图像的属性</td>
            </tr>

            <tr>
               <td align="center" colspan = "4">
                    <asp:FileUpload ID="FileUpload1" runat="server" />
&nbsp;&nbsp;&nbsp;&nbsp;
                    <asp:Button ID="Button1" runat="server" onclick="Button1_Click" 
                        Text="显示图像及其属性" />
                </td>
            </tr>
               <tr>
               <td align="center" colspan = "4">
                    <asp:Image ID="Image1" runat="server" Height="182px" ImageAlign="Middle" 
                        Visible="False" Width="246px" />
                   </td>
            </tr>
             <tr>
               <td align="center" class="style1">
                    图像宽度：</td>
                <td align="center" class="style5">
                    <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                 </td>
                  <td align="center" class="style2">
                      图像高度：</td>
                <td align="center">
                    <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
                 </td>
            </tr>
            <tr>
               <td align="center" class="style1">
                    图像路径：</td>
                <td align="center" class="style5">
                    <asp:TextBox ID="TextBox3" runat="server"></asp:TextBox>
                </td>
                  <td align="center" class="style2">
                      图像对齐方式：</td>
                <td align="center">
                    <asp:TextBox ID="TextBox4" runat="server"></asp:TextBox>
                </td>
            </tr>
            
        </table>
    
    </div>
    </form>
</body>
</html>
