protected override bool BeforeLoad() { TopicID = Common.Common.NoHtml(Request.QueryString["ID"].ToString()); //取社区主题信息 dalBBS = new DAL.BBS.BBSSectionDAL(); model = new BBS_Topic(); DataSet dsTopic = dalBBS.GetTopicInfo(TopicID); if (null != dsTopic && dsTopic.Tables.Count > 0 && dsTopic.Tables[0].Rows.Count > 0) { model = DataConvert.DataRowToModel <BBS_Topic>(dsTopic.Tables[0].Rows[0]); } string strSection = model.SID; //取站点信息 DataSet dsBBS = dalBBS.GetAccountData(strSection); if (null != dsBBS && dsBBS.Tables.Count > 0 && dsBBS.Tables[0].Rows.Count > 0) { SiteCode = dsBBS.Tables[0].Rows[0]["SiteCode"].ToString(); SiteID = dsBBS.Tables[0].Rows[0]["ID"].ToString(); } return(base.BeforeLoad()); }
protected override bool BeforeLoad() { if (null == Request.QueryString["ID"]) { Section = "CFC502D7-1FB6-4F3B-9827-6921B426A0CD"; } Section = Common.Common.NoHtml(Request.QueryString["ID"].ToString()); //取站点信息 DAL.BBS.BBSSectionDAL dalBBS = new DAL.BBS.BBSSectionDAL(); DataSet dsBBS = dalBBS.GetAccountData(Section); if (null != dsBBS && dsBBS.Tables.Count > 0 && dsBBS.Tables[0].Rows.Count > 0) { SiteCode = dsBBS.Tables[0].Rows[0]["SiteCode"].ToString(); SiteID = dsBBS.Tables[0].Rows[0]["ID"].ToString(); } return(base.BeforeLoad()); }