using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using CY.BLL; using CY.Model; using CY.Infrastructure.Query; using CY.Infrastructure.Common; using CY.BLL.Sys; using System.Data; namespace CY.WebForm.Pages.InfoManage { //吴辉 //广告位置管理 public partial class AdDetail : BasePage { Sys_DictionaryBLL bll_Sys_DictionaryBLL = null; Info_AdBLL bll_Info_AdBLL = null; Info_AdLoctionBLL bll_Info_AdLoctionBLL = null; //初始化 public AdDetail() { bll_Sys_DictionaryBLL = new Sys_DictionaryBLL(); bll_Info_AdBLL = new Info_AdBLL(); bll_Info_AdLoctionBLL = new Info_AdLoctionBLL(); } //页面加载 protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { BindList(); } } //绑定数据 private void BindList() { Info_Ad m_Info_Ad = bll_Info_AdBLL.SelectModelByKeyId(Request["Keyid"].ToInt32()); if (m_Info_Ad != null) { Info_AdLoction m_Info_AdLoction = bll_Info_AdLoctionBLL.SelectModelByKeyId(m_Info_Ad.AdLocationId); string ImgHtml = "" + m_Info_Ad.A_Title + ""; this.divAdHtml.InnerHtml = ImgHtml; } } } }