Web/About.aspx.cs
(完整代码) 1KBusing System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BYLD.xmlerBLL;
using BYLD.xmlerModel;
using Common;
using Maticsoft.DBUtility;
namespace WebBYZS
{
public partial class About : System.Web.UI.Page
{
int cid = Common.Units.GetIntQS("cid");
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
this.rpClass.DataSource = DbHelperSQL.Query("SELECT [InfoClassID],[InfoClassName] ,[ParentInfoClassID] FROM [dbo].[BasicInfoClass] where ParentInfoClassID in(" + Convert.ToInt32(C_EumType.GetLawClassId.关于我们) + ") and ParentInfoClassID<>0");
this.rpClass.DataBind();
BindInfoContent();
}
}
public void BindInfoContent()
{
InfoBLL bll = new InfoBLL();
Info model = new Info();
if (cid > 0)
{
model = bll.GetModel_Ohter(cid);
}
else
{
model = bll.GetModel_Ohter(Convert.ToInt32(C_EumType.GetLawClassId.关于我们));
}
if (model != null)
{
this.LabContentNote.Text = model.ContentNote;
this.txttitle.Text = model.InfoTitle;
this.Title = model.InfoTitle + "-" + Common.BasicSet.GetWebTitleName();
BasicInfoClassBLL objBasicInfoClassBLL = new BasicInfoClassBLL();
this.labInfoClassName.Text = objBasicInfoClassBLL.GetModel(Convert.ToInt32(model.InfoClassID)).InfoClassName;
}
}
}
}
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
