<%@ Page Language="C#" MasterPageFile="~/Template1.Master" AutoEventWireup="true" CodeBehind="Secar.aspx.cs" Inherits="WebApplication1.secar" Title="车辆详细信息" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <title>车辆信息</title>
    <style type="text/css">
        #juzhong { text-align:center; }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<body>
     <div id="juzhong">
        <table style="border: 1px none Black; margin-right: 59px; text-align:center;" width="50%" id="juzhong">
        <tr align="center">
        <td colspan="3" style="background-color:Green; font-weight:bold; text-align:center">车辆管理</td>
        </tr>
            <tr align="center">
                <td style="text-align: right;">
                    请输入汽车牌号：
                </td>
                <td>
                    <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
                </td>
                <td align="right">
                    <asp:Button ID="Button1" runat="server" Text="查询" onclick="Button1_Click"  />
                </td>
            </tr>
            <tr align="center">
                 <td colspan="3">
                 <asp:GridView ID="gvwDep" runat="server" Width="426px" AutoGenerateColumns="False" 
                         Height="70px" BackColor="White" BorderColor="#CC9966" BorderStyle="None" 
                         BorderWidth="1px" CellPadding="4" onrowcommand="gvwDep_RowCommand" 
                         onrowdeleting="gvwDep_RowDeleting">
                     <FooterStyle BackColor="#FFFFCC" ForeColor="#330099" />
                     <RowStyle BackColor="White" ForeColor="#330099" />
                     <Columns>
                         <asp:BoundField HeaderText="汽车牌号" DataField="c_carID" />
                         <asp:BoundField HeaderText="汽车品牌" DataField="c_cartype" />
                         <asp:BoundField HeaderText="汽车司机" DataField="c_driver" />
                         <asp:BoundField HeaderText="汽车状态" DataField="c_stau" />
                       <asp:TemplateField>
                         <ItemTemplate>
                             <asp:Button ID="btnUpt" runat="server" Text="修改" CommandName="Edit" CommandArgument='<%# Eval("c_carID")%>'/>
                             
                         </ItemTemplate>
                         </asp:TemplateField>

                         <asp:CommandField ShowDeleteButton="True" />
                     </Columns>
                    
                     <PagerStyle BackColor="#FFFFCC" ForeColor="#330099" HorizontalAlign="Center" />
                     <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="#663399" />
                     <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="#FFFFCC" />
                     </asp:GridView>
                 </td>
            </tr>
            
            <tr align="center">
                <td colspan="4" >
                    <asp:Button ID="btnAdd" runat="server" Text="添加" onclick="btnAdd_Click" 
                        Width="191px"  />
                </td>
            </tr>
        </table>
    </div>
</body>
</asp:Content>
