<%@ page language="C#" autoeventwireup="true" validaterequest="false" inherits="adminweb_CityManager, DoodiiShop" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<!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>
    <link href="css.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
            <div style="padding:6px">
                <asp:Label ID="Label3" runat="server" Font-Bold="False" Style="" Text="省份："></asp:Label>
                <asp:DropDownList ID="ProvDropDL" runat="server" Style="" AutoPostBack="True" Width="116px" OnSelectedIndexChanged="ProvDropDL_SelectedIndexChanged">
                </asp:DropDownList>
                <asp:Label ID="Label4" runat="server" Font-Bold="False" Style="" Text="城市名称："></asp:Label>

                <asp:TextBox ID="TextName" runat="server" Style="" BorderStyle="Groove"></asp:TextBox>
            
                <asp:Button ID="BTSave" runat="server" OnClick="BTSave_Click" Style="" Text="增加" Width="49px" />
          
                <asp:Label ID="Label2" runat="server" ForeColor="Red" Style=""></asp:Label>
            </div>

        <table style="">
            <tr>
                <td style="width: 100px">
                    <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                        DataKeyNames="CityId" OnPageIndexChanging="GridView1_PageIndexChanging" OnRowCancelingEdit="GridView1_RowCancelingEdit"
                        OnRowDeleting="GridView1_RowDeleting" OnRowEditing="GridView1_RowEditing" OnRowUpdating="GridView1_RowUpdating"
                        OnRowDataBound="GridView1_RowDataBound" Width="542px" CssClass="NewTable">
                        <Columns>
                            <asp:BoundField DataField="CityId" HeaderText="城市ID" ReadOnly="True" />
                            <asp:BoundField DataField="Cityname" HeaderText="城市名称" />
                            <asp:BoundField DataField="ProvinceID" HeaderText="省份ID" ReadOnly="True" />
                            <asp:BoundField DataField="ProvName" HeaderText="省份名称" ReadOnly="True" />
                            <asp:CommandField ShowEditButton="True" />
                            <asp:CommandField ShowDeleteButton="True" />
                        </Columns>
                        <RowStyle HorizontalAlign="Center" />
                        <HeaderStyle HorizontalAlign="Center" />
                    </asp:GridView>
                </td>
            </tr>
            <tr>
                <td style="width: 100px">
                    <asp:Label ID="Label1" runat="server" ForeColor="Red" Width="183px"></asp:Label>
                </td>
            </tr>
        </table>
    </form>
</body>
</html>
