<%@ 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>利用DropDownList控件选择会员图像</title>

    <style type="text/css">
        .style2
        {
            font-size: large;
            color: #008000;
            font-family: 微软雅黑;
            font-weight: bold;
        }
    </style>

</head>
<body>
    <form id="form1" runat="server">
    <div>
    
        <table align="center" style="width: 380px;" cellpadding="0" cellspacing="0">
            <tr>
                <td align="center" colspan ="2" class="style2">
                    利用DropDownList控件选择会员图像<br />
                    <br />
                </td>
            </tr>
            <tr>
                <td align="right"  >
                    会员注册图像：</td>
                <td align="center">
                    <asp:Image ID="Image1" runat="server" Height="68px" Width="74px" />
                </td>
            </tr>
            <tr>
                <td align="center"  >
                    &nbsp;</td>
                <td align="center">
                    <br />
                    <asp:DropDownList ID="DropDownList1"  AutoPostBack="True" runat="server" 
                        onselectedindexchanged="DropDownList1_SelectedIndexChanged">
                        <asp:ListItem>1</asp:ListItem>
                        <asp:ListItem>2</asp:ListItem>
                        <asp:ListItem>3</asp:ListItem>
                        <asp:ListItem>4</asp:ListItem>
                        <asp:ListItem>5</asp:ListItem>
                        <asp:ListItem>6</asp:ListItem>
                        <asp:ListItem>7</asp:ListItem>
                        <asp:ListItem>8</asp:ListItem>
                        <asp:ListItem>9</asp:ListItem>
                        <asp:ListItem>10</asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
        </table>
    
    </div>
    </form>
</body>
</html>
