<%@ 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
        {
            font-family: 华文新魏;
            font-size: x-large;
            color: #008080;
            font-weight: bold;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
        <table align="center" style="width: 520px;">
            <tr>
                <td  align="center" class="style1" >
                    带有图像的数据库数据的浏览与插入<br />
                </td>
            </tr>
            <tr>
                <td  align="center">
                    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
                        CellPadding="4" ForeColor="#333333" GridLines="None" Height="141px" 
                        Width="486px">
                        <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
                        <RowStyle BackColor="#FFFBD6" ForeColor="#333333" />
                        <Columns>
                            <asp:BoundField DataField="姓名" HeaderText="姓名" />
                            <asp:BoundField DataField="性别" HeaderText="性别" />
                            <asp:BoundField DataField="电话" HeaderText="电话" />
                            <asp:BoundField DataField="邮件" HeaderText="邮件" />
                            <asp:ImageField AlternateText="照片" DataImageUrlField="照片" HeaderText="照片">
                            </asp:ImageField>
                        </Columns>
                        <PagerStyle BackColor="#FFCC66" ForeColor="#333333" HorizontalAlign="Center" />
                        <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" />
                        <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
                        <AlternatingRowStyle BackColor="White" />
                    </asp:GridView>
                </td>
            </tr>
            <tr>
                <td  align="center">
                    <asp:Button ID="Button1" runat="server" Height="31px" onclick="Button1_Click" 
                        Text="  插  入  " Width="85px" />
                </td>
            </tr>
        </table>
    
    </div>
    </form>
</body>
</html>
