Admin/News/NewList.aspx.cs
(开头部分) 6KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Models;
public partial class NewList : AdminBase
{
public int classId;
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
ClassTreeBind("请选择栏目...", this.Classddl);
if (!string.IsNullOrEmpty(Request.Params["CID"]))
{
string _CId = HttpContext.Current.Request.QueryString["CID"];
Classddl.SelectedValue = _CId;
}
myDatabind();
}
}
private void myDatabind()
{
if (!int.TryParse(this.Classddl.SelectedValue as string, out this.classId))
{
this.classId = 0;
}
//if (classId != 0)
//{
using (Entities bll = new Entities())
{
var Bpl = bll.L_Newss.Select(s => new
{
NId = s.NID,
ClassId = s.ClassId,
Title = s.Title,
Time = s.Time,
IsTop = s.IsTop,
IsRed = s.IsRed,
IsHot = s.IsHot,
IsSlide = s.IsSlide,
IsLock = s.IsLock,
});
if (txtkey.Text.Trim() != "")
{
后面还有 165 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
