⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 search.aspx

📁 基于C#语言的一个企业客户管理数据库系统开发案例的源代码 ,很实用
💻 ASPX
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Search.aspx.cs" Inherits="Search" %>

<%@ Register Src="../UserControl/Footer.ascx" TagName="Footer" TagPrefix="uc2" %>
<link href="../css/style.css" rel="stylesheet" type="text/css" />
<%@ Register Src="~/UserControl/Header.ascx" TagName="Header" TagPrefix="uc1" %>

<!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>
</head>
<body style="text-align: center">
    <form id="form1" runat="server">
    <div style="text-align: center">
        <uc1:Header ID="Header1" runat="server" />
        <table border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td colspan="3" rowspan="3" style="width: 747px; height: 455px; vertical-align: top; text-align: center;" background="../Image/企业客户管理系统站内搜索.jpg">
                    <table style="width: 93%" border="0" cellpadding="0" cellspacing="0">
                        <tr>
                            <td style="width: 156px; height: 36px">
                            </td>
                            <td style="width: 487px; height: 36px">
                            </td>
                        </tr>
                        <tr>
                            <td style="vertical-align: top; text-align: center; width: 156px;">
                                    <table cellpadding="0" cellspacing="0" >
                                        <tr>
                                            <td colspan="1" >
                                            </td>
                                            <td colspan="3"  class="Font" contenteditable="">
                                                请输入搜索条件:</td>
                                        </tr>
                                        <tr>
                                            <td colspan="1">
                                            </td>
                                            <td colspan="3" style="text-align: center; ">
                                <asp:TextBox ID="txtSearch" runat="server" Font-Size="9pt" ></asp:TextBox><asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtSearch"
                        ErrorMessage="*"></asp:RequiredFieldValidator></td>
                                        </tr>
                                        <tr>
                                            <td colspan="1" style="height: 22px">
                                            </td>
                                            <td class="Font" colspan="3" style="height: 22px; text-align: center">
                                                (可以按序号/标题查询)</td>
                                        </tr>
                                        <tr>
                                            <td colspan="1" style="height: 22px" >
                                            </td>
                                            <td colspan="3" style=" text-align: center; height: 22px;">
        <asp:Button ID="btnSearch" runat="server" OnClick="btnSearch_Click" Text="搜索" Font-Size="9pt" /></td>
                                        </tr>
                                    </table>
                            </td>
                            <td style="vertical-align: top; text-align: center;">
                                <asp:DataList ID="DataList1" runat="server" CellPadding="1" Font-Size="Smaller" ForeColor="#333333" OnItemCommand="DataList1_ItemCommand" 
                                    Width="502px" Height="1px" CssClass="Font">
                                    <ItemTemplate>
                                        <table border="0" cellpadding="0" cellspacing="0" height="1" style="width: 100%">
                                            <tr style="width: 80%">
                                                <td style="height: 14px; text-align: center;" width="20%">
                                                    <asp:Label ID="labID" runat="server" Text='<%# DataBinder.Eval(Container,"DataItem.RecordID") %>' Font-Size="9pt"></asp:Label></td>
                                                <td style="height: 14px; text-align: center;" width="40%">
                                                    <asp:LinkButton ID="lnkbtnTitle" runat="server" CausesValidation="False" CommandName="select"
                                                        Text='<%# DataBinder.Eval(Container,"DataItem.RecordTitle") %>' Font-Size="9pt"></asp:LinkButton>
                                                </td>
                                                <td style="height: 14px; text-align: center;" width="13%">
                                                    <asp:Label ID="labUserName" runat="server" Text='<%# DataBinder.Eval(Container,"DataItem.UserName") %>' Font-Size="9pt"></asp:Label>
                                                </td>
                                                <td style="height: 14px; text-align: center;" width="27%">
                                                    <font style="color: darkkhaki"><span style="font-size: 9pt">发布时间 </span></font>&nbsp;[<asp:Label ID="labCreateDate" runat="server"
                                                        Text='<%# DataBinder.Eval(Container,"DataItem.CreateDate","{0:yyyy-MM-dd}") %>' Font-Size="9pt"></asp:Label>]</td>
                                            </tr>
                                        </table>
                                    </ItemTemplate>
                                    <AlternatingItemStyle BackColor="White" />
                                    <FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
                                    <SelectedItemStyle BackColor="#C5BBAF" Font-Bold="True" ForeColor="#333333" />
                                    <ItemStyle BackColor="#E3EAEB" />
                                    <HeaderStyle BackColor="#7296BE" Font-Bold="True" ForeColor="White" />
                                    <HeaderTemplate>
                                        <table border="0" cellpadding="0" cellspacing="0" height="12" style="width: 100%">
                                            <tr>
                                            </tr>
                                            <tr>
                                                <td width="20%" style="text-align: center">
                                                    <asp:Label ID="Label1" runat="server" Text="序号" Font-Size="9pt"></asp:Label></td>
                                                <td width="35%" style="text-align: center">
                                                    <asp:Label ID="Label2" runat="server" Text="标题" Font-Size="9pt"></asp:Label></td>
                                                <td width="25%" style="text-align: center">
                                                    <asp:Label ID="Label3" runat="server" Text="发布人" Font-Size="9pt"></asp:Label></td>
                                                <td width="30%" style="text-align: center">
                                                    <asp:Label ID="Label4" runat="server" Text="发布时间" Font-Size="9pt"></asp:Label></td>
                                            </tr>
                                                <tr>
                                                </tr>
                                        </table>
                                    </HeaderTemplate>
                                </asp:DataList><br />
                            </td>
                        </tr>
                        <tr>
                        <td style="width: 156px"></td>
                            <td  style="vertical-align: top; text-align: center">
                                    <table bgcolor="#cccccc"  cellpadding="0" cellspacing="0" style="width: 510px">
                                        <tr>
                                            <td style="width: 117px; height: 4px" valign="middle">
                                                <span style="font-size: 9pt">共有</span><asp:Label ID="labCount" runat="server" Font-Size="9pt"
                                                    ForeColor="#FF3300"></asp:Label><span style="font-size: 9pt">页</span></td>
                                            <td style="width: 68px; height: 4px" valign="middle">
                                                <span style="font-size: 9pt">当前</span><asp:Label ID="labNowPage" runat="server" Font-Size="9pt"
                                                    ForeColor="Brown">1</asp:Label><span style="font-size: 9pt">页</span></td>
                                            <td style="width: 95px; height: 4px; text-align: left" valign="middle">
                                                <span style="font-size: 9pt">跳转到</span>
                                                <asp:TextBox ID="txtGoto" runat="server" Height="20px" Width="18px"></asp:TextBox>
                                                <asp:Button ID="btnGoto" runat="server" Height="21px" OnClick="btnGo_Click" Text="Go"
                                                    Width="25px" CausesValidation="False" /></td>
                                            <td style="width: 32px; height: 4px" valign="middle">
                                                <asp:LinkButton ID="lnkbtnFirst" runat="server" Font-Size="9pt" Font-Underline="False"
                                                    ForeColor="Black" OnClick="lnkbtnFirst_Click" CausesValidation="False">首页</asp:LinkButton></td>
                                            <td style="width: 42px; height: 4px" valign="middle">
                                                <asp:LinkButton ID="lnkbtnFront" runat="server" Font-Size="9pt" Font-Underline="False"
                                                    ForeColor="Black" OnClick="lnkbtnFront_Click" CausesValidation="False">上一页</asp:LinkButton></td>
                                            <td style="width: 40px; height: 4px" valign="middle">
                                                <asp:LinkButton ID="lnkbtnNext" runat="server" Font-Size="9pt" Font-Underline="False"
                                                    ForeColor="Black" OnClick="lnkbtnNext_Click" CausesValidation="False">下一页</asp:LinkButton></td>
                                            <td style="height: 4px; width: 28px;" valign="middle">
                                                <asp:LinkButton ID="lnkbtnLast" runat="server" Font-Overline="False" Font-Size="9pt"
                                                    Font-Underline="False" ForeColor="Black" OnClick="lnkbtnLast_Click" CausesValidation="False">尾页</asp:LinkButton></td>
                                        </tr>
                                    </table>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
            </tr>
            <tr>
            </tr>
        </table>
        <br />
        <uc2:Footer ID="Footer1" runat="server" />
        <br />
        <div style="text-align: center" class="Font">
            &nbsp;<br />
            &nbsp;</div>
    </div>
    </form>
</body>
</html>

⌨️ 快捷键说明

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