private void SetNavTitle() { Mxm.Model.product_type mo = new Mxm.DAL.product_type().GetModel(_type_id); if (mo != null) { lbl_nav.Text = " - " + mo.type_name; Title = mo.type_name + ConfigurationManager.AppSettings["title"]; type_remark.InnerHtml = mo.remark; if (!string.IsNullOrEmpty(mo.banner)) { topBanner.Src =ConfigurationManager.AppSettings["imgPath"]+ mo.banner; } else { topBanner.Style.Add("display", "none"); } } }
private void SetNavTitle(int type,string name) { Mxm.Model.product_type mo = new Mxm.DAL.product_type().GetModel(type); if (mo != null) { lbl_nav.Text = " - <a href='productlist.aspx?type=" + type + "'>" + mo.type_name + "</a> - " + name; if (!string.IsNullOrEmpty(mo.banner)) { topBanner.Src = ConfigurationManager.AppSettings["imgPath"] + mo.banner; } else { topBanner.Style.Add("display", "none"); } } Title = name + ConfigurationManager.AppSettings["title"]; }
private void InitType() { System.Collections.Generic.List<Mxm.Model.product_type> lst = new Mxm.DAL.product_type().GetListArray("parent_id<>0"); ddlType.DataSource = lst; ddlType.DataTextField = "type_name"; ddlType.DataValueField = "type_id"; ddlType.DataBind(); }