CmsWeb/App_Code/ToAspx.cs
(开头部分) 10KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Cms.Common;
using System.Data;
using System.Text.RegularExpressions;
using System.Text;
/// <summary>
///ToAspx 的摘要说明
/// </summary>
public class ToAspx
{
public ToAspx()
{
//
//TODO: 在此处添加构造函数逻辑
//
}
#region 返回栏目url=========================================
public static string getCloumnUrl(int id)
{
string result = "";
Cms.Model.C_Column model = new Cms.BLL.C_Column().GetModel(id);
if (model != null)
{
if (model.modelId == 1)
{
DataSet ds = new Cms.BLL.C_Column().GetList(1, "parentId=" + id, "classId asc");
if (ds != null && ds.Tables[0].Rows.Count > 0)
{
result = "/html/" +ds.Tables[0].Rows[0]["tpl_channel"].ToString() + ".aspx?id=" + ds.Tables[0].Rows[0]["classId"].ToString();
}
}
else
{
result = "/html/" + model.tplChannel + ".aspx?id=" + id;
}
}
return result;
}
#endregion
#region 返回栏目的内容Url==========================================
public static string getContentUrl(int id, int articleId)
{
string result = "";
Cms.Model.C_Column model = new Cms.BLL.C_Column().GetModel(id);
if (model != null)
{
result = "/html/" + model.tplContent + ".aspx?articleId=" + articleId;
}
return result;
}
#endregion
后面还有 227 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
