weikeweixin/web/admin/website/news.aspx.cs
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using weikebuluo.Common;
using weikebuluo.DAL;
namespace weikeweixin.web.admin.website
{
public partial class news : weikeweixin.web.admin.cs.adminbase
{
JsonOperate JsonOperate = new JsonOperate();
t_news_dal NewsDAL = new t_news_dal();
protected void Page_Load(object sender, EventArgs e)
{
if (string.IsNullOrEmpty(user_id))
{
Response.Write("<script Language=\"Javascript\">alert(\"请先配置微官网\")");
Response.Write("</script>");
Response.End();
}
switch (Request.QueryString["action"])
{
case "list":
GetList();
break;
case "list2":
GetList2();
break;
case "del":
Delete();
break;
}
}
private void GetList2()
{
string where = "user_id=" + user_id;
if (!string.IsNullOrEmpty(Request.Form["cid"]))
{
where += " and CId=" + Request.Form["cid"];
}
if (!string.IsNullOrEmpty(Request.Form["title"]))
{
where += " and NTitle like '%" + Request.Form["title"] + "%'";
}
Response.Write(JsonOperate.TableToBasicJson(NewsDAL.GetList(where).Tables[0]));
Response.End();
}
private void Delete()
{
bool bl = NewsDAL.Delete(int.Parse(Request.QueryString["id"].Trim()));
}
private void GetList()
{
后面还有 12 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
