Teacher_Info_List.aspx.cs
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
public partial class Teacher_Info_List : WebPage
{
protected void Page_Load(object sender, EventArgs e)
{
if (!this.IsPostBack)
{
if (this.ValidateTeacher())
{
this.initList();
this.initForm();
}
}
}
#region 窗体内部函数
/// <summary>
/// 初始化下拉列表
/// </summary>
private void initList()
{
InfoClassMgr mgr = new InfoClassMgr();
this.lstInfoClassID.DataSource = mgr.GetInfoClassList();
this.lstInfoClassID.DataTextField = "InfoClassName";
this.lstInfoClassID.DataValueField = "InfoClassID";
this.lstInfoClassID.DataBind();
this.lstInfoClassID.Items.Insert(0, new ListItem("所有类别", "0"));
}
/// <summary>
/// 初始化信息列表
/// </summary>
private void initForm()
{
InfoMgr mgr = new InfoMgr();
this.dgList.DataSource = mgr.GetInfoList(this.txtCaption.Text, int.Parse(this.lstInfoClassID.SelectedValue));
this.dgList.DataBind();
}
#endregion
#region 事件产生的函数
protected void dgList_RowDeleting(object sender, GridViewDeleteEventArgs e)
{
GridViewRow row = this.dgList.Rows[e.RowIndex];
InfoMgr mgr = new InfoMgr();
mgr.DelInfo(row.Cells[0].Text);
this.initForm();
}
后面还有 25 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。