HyperLesson/Admin/Audit-A.aspx.cs
(开头部分) 6KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BLL;
using Model;
namespace HyperLesson
{
public partial class Audit_A : System.Web.UI.Page
{
//数据绑定
private void Bind()
{
//获取审核状态条件
string type = this.DropDownList1.Text;
GridView1.DataSource = LessonManager.getAudit(type);
GridView1.DataBind();
}
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
Bind();
}
}
//刷新
protected void Button4_Click(object sender, EventArgs e)
{
Response.Redirect("Audit-A.aspx");
}
//点击跳转页数的功能
protected void Turn_Click(object sender, EventArgs e)
{
if (((TextBox)GridView1.BottomPagerRow.FindControl("txtGoPage")).Text == "")
{
Response.Write("<script>alert('请输入需要跳转的页码!');location.href='Lesson-S.aspx';</script>");
return;
}
GridView1.PageIndex = int.Parse(((TextBox)GridView1.BottomPagerRow.FindControl("txtGoPage")).Text) - 1;
Bind();
}
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
int i;
for (i = 0; i <= GridView1.Rows.Count; i++)
{
//首先判断是否是数据行
if (e.Row.RowType == DataControlRowType.DataRow)
{
//当鼠标停留时更改背景色
e.Row.Attributes.Add("onmouseover", "c=this.style.backgroundColor;this.style.backgroundColor='skyblue'");
//当鼠标移开时还原背景色
e.Row.Attributes.Add("onmouseout", "this.style.backgroundColor=c");
}
}
}
//分页
后面还有 102 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。