selectbranchs.aspx

来自「c#三层架构项目开发的全过程」· ASPX 代码 · 共 88 行

ASPX
88
字号
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SelectBranchs.aspx.cs" Inherits="Enterprise_management.SelectBranchs" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>分店信息查询</title>
    <META http-equiv="Content-Type" content="text/html" charset="utf-8">
        <META content="MSHTML 6.00.2900.5848" name="GENERATOR">
</head>
        <body style="BACKGROUND-POSITION-Y: -120px; BACKGROUND-IMAGE: url('../images/bg.gif'); BACKGROUND-REPEAT: repeat-x">
        <form id="form1" runat="server">
     <div>
        <table height="100%" cellSpacing="0px" cellPadding="0px" width="100%" border="0">
        <tbody>
        <tr style="BACKGROUND-IMAGE: url(../images/bg_header.gif); BACKGROUND-REPEAT: repeat-x" height="47px">
        <td width="10px">
        <span style="FLOAT: left; BACKGROUND-IMAGE: url('../images/main_hl.gif'); WIDTH: 15px; BACKGROUND-REPEAT: no-repeat; HEIGHT: 47px"></span></td>
        <td>
        <span style="FLOAT: left; BACKGROUND-IMAGE: url('../images/main_hl2.gif'); WIDTH: 15px; BACKGROUND-REPEAT: no-repeat; HEIGHT: 47px"></span>
        <span style="PADDING-RIGHT: 10px; PADDING-LEFT: 10px; FLOAT: left; BACKGROUND-IMAGE: url(../images/main_hb.gif); PADDING-BOTTOM: 10px; COLOR: white; PADDING-TOP: 10px; BACKGROUND-REPEAT: repeat-x; HEIGHT: 47px; TEXT-ALIGN: center; 0px: ">分店信息查询</span>
        <span style="FLOAT: left; BACKGROUND-IMAGE: url('../images/main_hr.gif'); WIDTH: 60px; BACKGROUND-REPEAT: no-repeat; HEIGHT: 47px"></span></td>
        <td style="BACKGROUND-POSITION: 50% bottom; BACKGROUND-IMAGE: url('../images/main_rc.gif')" width="10px"></td>
        </tr>
        <tr>
        <td style="BACKGROUND-IMAGE: url('../images/main_ls.gif')">&nbsp;</td>
        <td style="PADDING-RIGHT: 10px; PADDING-LEFT: 10px; PADDING-BOTTOM: 10px; COLOR: #566984; PADDING-TOP: 10px; BACKGROUND-COLOR: white" vAlign="top" align="middle">

        <div>
        <table style="height: 27px; width: 891px">
        <tr>
        <td><asp:Label ID="lbl" runat="server" Text="分店信息总览"  Font-Size="Large"></asp:Label>
        </td>
        <td align="right"> 
        
        <asp:DropDownList ID="ddlBranchSearchCondition" runat="server">
        <asp:ListItem>请选择搜索条件</asp:ListItem>
            <asp:ListItem>分店名称</asp:ListItem>
            <asp:ListItem>分店负责人</asp:ListItem>
        </asp:DropDownList>
            <asp:TextBox ID="SelectBranchsTextBox1" runat="server">输入搜索信息查询</asp:TextBox>
        
            <asp:Button ID="SelectBranchsButton1" runat="server" Text="搜索" 
                onclick="SelectBranchsButton1_Click" />

       
        </tr>
        </table>
            <br />
        <asp:GridView ID="GvBranchShow" runat="server" AutoGenerateColumns="False"  
                BackColor="White" BorderColor="#3366CC" BorderStyle="None" BorderWidth="1px" 
                CellPadding="4" Width="100%" 
                style="margin-right: 6px; text-align: center;" 
                onrowdeleting="GvBranchShow_RowDeleting" Height="146px">
        <Columns>
        <asp:BoundField HeaderText="分店编号" DataField="Shop_id" />
        <asp:BoundField HeaderText="分店名称" DataField="Shop_name" />
            <asp:BoundField HeaderText="分店负责人" DataField="Shop_un" />
        <asp:BoundField HeaderText="分店地址" DataField="Shop_address" />
        <asp:BoundField HeaderText="联系电话" DataField="Shop_tel" />
            <asp:HyperLinkField DataNavigateUrlFields="Shop_id" 
                DataNavigateUrlFormatString="SelectBranchDetail.aspx?shop_id={0}" 
                HeaderText="查看详情" Text="查看详情" />
            <asp:HyperLinkField DataNavigateUrlFields="Shop_id" 
                DataNavigateUrlFormatString="UpdateBranch.aspx?shop_id={0}" HeaderText="修改信息" 
                Text="修改" />
            <asp:CommandField ShowDeleteButton="True" HeaderText="删除" />
        </Columns>
        </asp:GridView>
            
        &nbsp;&nbsp; 
        </div>
        </td>
        <td style="BACKGROUND-IMAGE: url('../images/main_rs.gif')"></td>
        </tr>
        <tr style="BACKGROUND-IMAGE: url('../images/main_fs.gif'); BACKGROUND-REPEAT: repeat-x" height="10px">
        <td style="BACKGROUND-IMAGE: url('../images/main_lf.gif')"></td>
        <td style="BACKGROUND-IMAGE: url('../images/main_fs.gif')"></td>
        <td style="BACKGROUND-IMAGE: url('../images/main_rf.gif')"></td>
        </tr>
        </tbody>
        </table>
        </div>

        </div>
        </form>
        </body>
        </html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?