LK.Shop.Web/Info/Content.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 LK.Shop.Model;
using LK.Shop.BLL;
using LK.Shop.Common;
using System.Data;
namespace LK.Shop.Web.Info
{
public partial class Content : LK.Shop.Web.PageBase.ShopPageBase
{
LK.Shop.BLL.ArticleCategory categoryBll = new BLL.ArticleCategory();
LK.Shop.BLL.ArticleInfo articleInfoBll = new BLL.ArticleInfo();
LK.Shop.Model.ArticleInfo articleInfoModel = new Model.ArticleInfo();
private int vID;
public string contents;
public string categoryName;
public string categoryID;
public string pageUrl;
public string articleTitle;
protected void Page_Load(object sender, EventArgs e)
{
if (Request.QueryString["ID"] != null && Request.QueryString["ID"].Trim() != "")
{
if (!int.TryParse(Request.QueryString["ID"], out vID))
{
Response.Redirect("../error.aspx");
Response.End();
}
else
{
vID = int.Parse(Request.QueryString["ID"].ToString());
}
}
else
{
vID = 0;
}
if (!IsPostBack)
{
LoadArticleInfo();
LoadCategoryInfo();
}
}
#region 加载列表信息
/// <summary>
/// 加载列表信息
/// </summary>
private void LoadCategoryInfo()
{
string strWhere = " ";
RepeaterFenLie.DataSource = categoryBll.GetAllList(strWhere);
RepeaterFenLie.DataBind();
}
后面还有 48 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
