📄 adminelect.aspx
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="adminelect.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>
<form id="form1" runat="server">
<div>
<asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False"
CellPadding="4" DataKeyNames="courceID,teaID" ForeColor="#333333" GridLines="None"
OnPageIndexChanging="Data_Page" PageSize="5"
Width="847px">
<Columns>
<asp:BoundField DataField="courceID" HeaderText="courceID" ReadOnly="True" SortExpression="courceID"
Visible="False" />
<asp:BoundField DataField="teaID" HeaderText="teaID" ReadOnly="True" SortExpression="teaID"
Visible="False" />
<asp:BoundField DataField="courceName" HeaderText="课程名称" SortExpression="courceName" />
<asp:BoundField DataField="typename" HeaderText="课程类别" SortExpression="typename" />
<asp:BoundField DataField="teaName" HeaderText="教师姓名" SortExpression="teaName" />
<asp:BoundField DataField="courceTime" HeaderText="上课时间" SortExpression="courceTime" />
<asp:BoundField DataField="courceAddress" HeaderText="上课地点" SortExpression="courceAddress" />
<asp:BoundField DataField="credit" HeaderText="课程学分" SortExpression="credit" />
<asp:BoundField DataField="xueshi" HeaderText="课程学时" SortExpression="xueshi" />
<asp:BoundField DataField="courcerenshu" HeaderText="限选人数" SortExpression="courcereshu" />
<asp:BoundField DataField="renshu" HeaderText="已选人数" SortExpression="renshu" />
</Columns>
<FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
<RowStyle BackColor="#EFF3FB" />
<EditRowStyle BackColor="#2461BF" />
<SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
<PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
<HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
<AlternatingRowStyle BackColor="White" />
<PagerTemplate>
<table>
<tr>
<td>
<asp:Label ID="LabelCurrentPage" runat="server" Font-Size="Small">当前页:<%# ((GridView)Container.NamingContainer).PageIndex + 1 %></asp:Label></td>
<td>
<asp:Label ID="LabelPageCount" runat="server" Font-Size="Small">总页数:<%# ((GridView)Container.NamingContainer).PageCount %></asp:Label></td>
<td>
<asp:LinkButton ID="LinkButtonFirstPage" runat="server" CommandArgument="First" CommandName="Page"
Enable="<%# ((GridView)Container.NamingContainer).PageIndex != 0 %>" Font-Size="Small">首页</asp:LinkButton></td>
<td>
<asp:LinkButton ID="LinkButtonPreviousPage" runat="server" CommandArgument="Prev"
CommandName="Page" Enable="<%# ((GridView)Container.NamingContainer).PageIndex != 0 %>"
Font-Size="Small">上一页</asp:LinkButton></td>
<td>
<asp:LinkButton ID="LinkButtonNextPage" runat="server" CommandArgument="Next" CommandName="Page"
Enable="<%# ((GridView)Container.NamingContainer).PageIndex != ((GridView)Container.NamingContainer).PageCount - 1 %>"
Font-Size="Small">下一页</asp:LinkButton></td>
<td>
<asp:LinkButton ID="LinkButtonLastPage" runat="server" CommandArgument="Last" CommandName="Page"
Enable="<%# ((GridView)Container.NamingContainer).PageIndex != ((GridView)Container.NamingContainer).PageCount - 1 %>"
Font-Size="Small">尾页</asp:LinkButton></td>
</tr>
</table>
</PagerTemplate>
</asp:GridView>
</div>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -