CmsWeb/html/Control/bottom.ascx.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 System.Data;
public partial class Control_bottom : System.Web.UI.UserControl
{
Cms.BLL.C_link blllink = new Cms.BLL.C_link();
Cms.BLL.C_WebSiteconfig bllsite = new Cms.BLL.C_WebSiteconfig();
protected void Page_Load(object sender, EventArgs e)
{
//bindlink();//绑定友情链接
bindsite();//绑定网站信息
bind_footer();//绑定栏目链接
}
#region 绑定友情链接====================
public void bindlink()
{
DataSet ds = blllink.GetList(6, "", "ordernum asc");
if (ds != null && ds.Tables[0].Rows.Count > 0)
{
//Repeaterlink.DataSource = ds.Tables[0].DefaultView;
//Repeaterlink.DataBind();
}
}
#endregion
#region 绑定栏目链接====================
public void bind_footer()
{
Cms.BLL.C_Column bllColumn = new Cms.BLL.C_Column();
DataSet ds = bllColumn.GetList("parentId=34");
if (ds != null && ds.Tables[0].Rows.Count > 0)
{
Repeaterfooterone.DataSource = ds.Tables[0].DefaultView;
Repeaterfooterone.DataBind();
}
DataSet ds1 = bllColumn.GetList("parentId=35");
if (ds1 != null && ds1.Tables[0].Rows.Count > 0)
{
Repeaterfootertwo.DataSource = ds1.Tables[0].DefaultView;
Repeaterfootertwo.DataBind();
}
Cms.BLL.C_article_category bllcategory = new Cms.BLL.C_article_category();
DataSet ds2 = bllcategory.GetListByPage("class_layer=3 and channel_id in (4)", "sort_id desc", 1, 8);
if (ds2 != null && ds2.Tables[0].Rows.Count > 0)
{
Repeaterfooterthree.DataSource = ds2.Tables[0].DefaultView;
Repeaterfooterthree.DataBind();
}
}
#endregion
#region 绑定网站信息=====================
后面还有 15 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
