default.aspx

来自「水晶报表详细资料水晶报表详细资料水晶报表详细资料」· ASPX 代码 · 共 55 行

ASPX
55
字号
<%@ 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>无标题页</title>
</head>
<body bgcolor ="#ffffcc" style="background-color: #ffffff">
    <form id="form1" runat="server">
    <div>
        <table width =100%>
            <tr align =center >
                <td style="background-color: gainsboro; width: 619px;">
                    <asp:Label ID="Label1" runat="server" Text="查询数据大于指定条件的数据" Font-Bold="True" Font-Names="隶书" Font-Size="16pt" ForeColor="ForestGreen" style="left: 3px; position: relative; top: 2px; background-color: #99ff33"></asp:Label></td>
              
            </tr>
            <tr align =center >
                <td style="background-color: gainsboro; width: 619px;">
                    <asp:Label ID="Label2" runat="server" Text="查询年龄大于" Font-Bold="True" Font-Names="隶书" ForeColor="Green"></asp:Label>
                    <asp:TextBox ID="TextBox1" runat="server" Width="47px"></asp:TextBox>
                    <asp:Label ID="Label3" runat="server" Font-Bold="True" Font-Names="隶书" ForeColor="Green"
                        Text="的学生信息"></asp:Label>
                    <asp:Button ID="Button1" runat="server" Text="查询" OnClick="Button1_Click" /></td>
              
            </tr>
            <tr align =center >
                <td  align =center style="background-color: gainsboro; width: 619px; height: 143px;" >
                    <asp:GridView ID="GridView1" runat="server" DataKeyNames ="学生编号" AutoGenerateColumns =False AllowPaging="True" BackColor="#DEBA84" BorderColor="#DEBA84" BorderStyle="None" BorderWidth="1px" CellPadding="3" CellSpacing="2" PageSize="5" OnPageIndexChanging="GridView1_PageIndexChanging" Font-Size="9pt" >
                    <Columns>
                    <asp:BoundField DataField ="学生编号" HeaderText ="学生编号"/>
                    <asp:BoundField DataField ="学生姓名" HeaderText ="学生姓名" />
                    <asp:BoundField DataField ="性别"  HeaderText ="性别"/>
                    <asp:BoundField DataField ="出生年月" HeaderText ="出生年月" />
                    <asp:BoundField DataField ="年龄" HeaderText ="年龄" />
                    <asp:BoundField DataField ="所在学院"  HeaderText ="所在学院"/>
                    </Columns>
                        <FooterStyle BackColor="#F7DFB5" ForeColor="#8C4510" />
                        <RowStyle BackColor="#FFF7E7" ForeColor="#8C4510" />
                        <SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="White" />
                        <PagerStyle ForeColor="#8C4510" HorizontalAlign="Center" />
                        <HeaderStyle BackColor="#A55129" Font-Bold="True" ForeColor="White" />
                    
                    </asp:GridView>
                </td>
              
            </tr>
           
        </table>
    
    </div>
    </form>
</body>
</html>

⌨️ 快捷键说明

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