C2C.Web/webadmin/news/list.aspx.cs
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Text;
namespace C2C.Web.webadmin.news
{
public partial class list : BasePage
{
BLL.pubArticle bllArticle = new BLL.pubArticle();
protected void Page_Load(object sender, EventArgs e)
{
#region 页面AJAX提交
string action = Request["action"];
string id = Request["id"];
string status = Request["AvaStatus"];
switch (action)
{
case "del":
Del(id);
break;
}
#endregion
if (!IsPostBack)
{
if (!string.IsNullOrEmpty(Request["type"]))
{
this.ddlType.SelectedValue = Request["type"];
}
BindData(GetStrWhere());
}
}
private void Del(string id)
{
try
{
bllArticle.Delete(int.Parse(id));
Response.Write("1");
}
catch (Exception ex)
{
Response.Write("0");
}
Response.End();
}
后面还有 51 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
