student/CourseList.aspx

(开头部分) 5KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="CourseList.aspx.cs" Inherits="admin_CourseList" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<HTML>
	<HEAD>
		<title>课程管理</title>
		<meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
		<meta name="CODE_LANGUAGE" Content="C#">
		<meta name="vs_defaultClientScript" content="JavaScript">
		<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
		<LINK href="css/style.css" type="text/css" rel="stylesheet">
	</HEAD>
	<body>
		<form id="Form1" method="post" runat="server">
		
			
				<TABLE id="Table2" cellSpacing="0" cellPadding="5" border="0" style="width: 100%">
                   
                    <tr><td>按课程关键字查询:<asp:TextBox ID="txtCouse" runat="server" Width="196px"/></td>&nbsp;&nbsp;&nbsp;<td><asp:Button ID="btnSearch" runat="server" OnClick="btnSearch_Click" Text="查询" /></td></tr>
				</TABLE>
                    <table border="0" cellpadding="0" cellspacing="0" width="100%" style="color: #000000">
                        <tr>
                            <td align="left" height="43" style="width: 100%; height: 43px">
                                <asp:GridView ID="dlinfo" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                                    BackColor="White" CellPadding="5" DataKeyNames="id" OnPageIndexChanging="dlinfo_PageIndexChanging"
                                    OnRowDataBound="dlinfo_RowDataBound" OnRowDeleting="dlinfo_RowDeleting" Width="100%">
                                    <PagerSettings FirstPageText="首页" LastPageText="尾页" Mode="NextPreviousFirstLast"
                                        NextPageText="下一页" PageButtonCount="12" PreviousPageText="上一页" />
                                    <RowStyle HorizontalAlign="Left" />
                                    <Columns>
                                           <asp:TemplateField HeaderText="编号">
                                        <ItemTemplate>  
                                            <asp:Label ID="Label1" runat="server"><%# Eval("id") %></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                   
                                    <asp:TemplateField HeaderText="课程名称">
                                        
                                        <ItemTemplate>
                                            <asp:Label ID="courseName" runat="server"><%# Eval("courseName")%></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                              <asp:TemplateField HeaderText="选择课程">
                                <ItemTemplate>
                                    <asp:HyperLink ID="HyperLink2" runat="server" NavigateUrl='<%# "ChkCourse.aspx?id="+Eval("id") %>'
                                        Text="选择该课程"></asp:HyperLink>
                                </ItemTemplate>
                                <ItemStyle HorizontalAlign="Center" Width="100px" />
                            </asp:TemplateField>
                                    </Columns>
                                    <PagerTemplate>
                                        <table border="0" width="100%">
                                            <tr>
                                                <td>
                                                    <asp:LinkButton ID="LinkButtonFirstPage" runat="server" CommandArgument="First" CommandName="Page"
                                                        Visible=" <%# ((GridView)Container.NamingContainer).PageIndex != 0 %>">首页 </asp:LinkButton>
                                                    <asp:LinkButton ID="LinkButtonPreviousPage" runat="server" CommandArgument="Prev"
                                                        CommandName="Page" Visible=" <%# ((GridView)Container.NamingContainer).PageIndex != 0 %>">上一页 </asp:LinkButton>
                                                    <asp:LinkButton ID="LinkButtonNextPage" runat="server" CommandArgument="Next" CommandName="Page"
                                                        Visible=" <%# ((GridView)Container.NamingContainer).PageIndex != ((GridView)Container.NamingContainer).PageCount - 1 %>">下一页 </asp:LinkButton>
后面还有 22 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读 AI

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。