WebApp/Admin/News_Manage.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;
namespace RM.WebApp.Admin
{
public partial class News_Manage : AdminBasic
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
RM.BLL.Cate CateBLL = new RM.BLL.Cate();
ddlClass.Items.Insert(0, "==请选择分类==");
ddlClass.Items[0].Value = "0";
//this.getTreeList(ddlClass, CateBLL.GetListBySort("Article"));
this.getTreeList(ddlClass, CateBLL.GetListBySort(1));
if (Request["CID"] != null)
{
labAction.Text = new RM.BLL.Cate().GetEntity(Convert.ToInt32(Request["CID"])).Name;
}
}
}
private void CTB()
{
RM.BLL.Article artBll = new RM.BLL.Article();
DataTable tb = artBll.GetArticleList(Convert.ToInt32(Request["CID"]));
if (tb.Rows.Count > 0)
{
MyGridView.DataSource = tb;
MyGridView.DataBind();
}
}
protected void MyGridView_RowCreated(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowIndex >= 0)
{
TableCell MyCell = e.Row.Cells[8];
MyCell.Attributes.Add("onclick", "return confirm('您确定要删除吗?');");
}
}
protected void MyGridView_DataBound(object sender, EventArgs e)
{
K2046Pager1.PageCount = MyGridView.PageCount;
}
protected void K2046Pager1_PageIndexChange(object sender, EventArgs e)
{
MyGridView.PageIndex = K2046Pager1.AbsolutePage - 1;
}
后面还有 16 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。