LK.Shop.Web/Controls/Button.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.Text;
using System.Data;
namespace LK.Shop.Web.Controls
{
public partial class Button : System.Web.UI.UserControl
{
LK.Shop.BLL.HelpCategory categoryBll = new BLL.HelpCategory();
LK.Shop.BLL.HelpInfo helpInfoBll = new BLL.HelpInfo();
LK.Shop.BLL.SiteBaseInfo siteBaseInfoBll = new BLL.SiteBaseInfo();
LK.Shop.Model.SiteBaseInfo siteBaseInfoModel = new Model.SiteBaseInfo();
protected string SiteAlexa;
protected string SiteFooter;
protected string ServerTime;
protected string ServerTel;
protected string KFQQ;
private string[] KFQQArr;
protected void Page_Load(object sender, EventArgs e)
{
siteBaseInfoModel = siteBaseInfoBll.GetModel();
SiteAlexa = siteBaseInfoModel.SiteAlexa;
SiteFooter = siteBaseInfoModel.SiteCopyright;
ServerTime = siteBaseInfoModel.ServerTime;
ServerTel = siteBaseInfoModel.ServerTel;
KFQQ = siteBaseInfoModel.KFQQ;
if (KFQQ != "") {
KFQQArr = KFQQ.Split(',');
DataTable kf = new DataTable();
kf.Columns.Add(new DataColumn("KFQQ", typeof(String)));
for (int i = 0; i < KFQQArr.Length; i++)
{
kf.Rows.Add(new object[] { KFQQArr[i].ToString() });
}
SiteKF.DataSource = kf;
SiteKF.DataBind();
}
if (!IsPostBack) {
LoadHelpInfo();
}
}
private void LoadHelpInfo() {
DataTable dt1 = categoryBll.GetList(5, "CategoryFlag=0", "CategoryOrder").Tables[0];
HelpList.DataSource = dt1;
HelpList.DataBind();
}
#region 绑定小类
protected void Repeater1_ItemDataBound(object sender, RepeaterItemEventArgs e)
{
后面还有 23 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
