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

📄 index.aspx

📁 有用的参考例子
💻 ASPX
字号:
<%@ page language="C#" autoeventwireup="true" inherits="School_admin_result_index, App_Web_badktj3z" %>

<%@ Register Src="../Page.ascx" TagName="Page" 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>
      <link href="../style/css_2/2.css"rel="stylesheet" />
</head>
<body>
    <form id="theForm" runat="server">
    <div>
        <table style="width: 655px; height: 91px; text-align: center;">
          <tr>
             <td style="width: 635px; text-align: left; height: 24px;">
                 <strong>查询条件<asp:DropDownList ID="ddlType"  runat="server" Width="172px" >
                     <asp:ListItem>姓名</asp:ListItem>
                     <asp:ListItem>准考证号</asp:ListItem>
                     <asp:ListItem>班级代码</asp:ListItem>
                 </asp:DropDownList>
                 <asp:TextBox ID="txtQuery" runat="server" CausesValidation="True"></asp:TextBox>
                     <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="务必填写查询条件"
                         ToolTip="务必填写查询条件" ControlToValidate="txtQuery">*</asp:RequiredFieldValidator>(填写相应的内容,必添!)</strong></td>
             <td style="height: 24px; width: 90px;">
                 &nbsp;<asp:Button ID="btnQuery" runat="server" Text="查询" OnClick="btnQuery_Click" /></td>
          </tr>
          <tr>
            <td colspan="2" style="height: 153px">
                <asp:GridView ID="gvwMain" runat="server" AutoGenerateColumns="False" Height="43px"
                    Width="840px" OnRowDataBound="GridView1_RowDataBound" OnPageIndexChanging="GridView1_PageIndexChanging" DataKeyNames="s.id" BackColor="Gainsboro" AllowPaging="True" PageSize="20" >
                    <HeaderStyle BackColor="CornflowerBlue" Font-Bold="True" ForeColor="White" />
                    <Columns>
                        <asp:BoundField DataField="s.id" HeaderText="编号" />
                        <asp:BoundField DataField="s.name" HeaderText="姓名" />
                        <asp:BoundField DataField="s.number" HeaderText="准考证号" />
                        <asp:BoundField DataField="c.number" HeaderText="班级代码" />
                        <asp:TemplateField HeaderText="详细成绩 ">
                            <ItemTemplate>
                                &nbsp;<asp:LinkButton ID="LinkButton1" runat="server">点击查看</asp:LinkButton>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                    <PagerSettings Visible="False" />
                </asp:GridView>
                <uc1:Page ID="gpbBottom" runat="server" />
            </td>
          </tr>
          
        </table>
    </div>
    </form>
</body>
</html>

⌨️ 快捷键说明

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