Exemple #1
0
        //详情
        public ActionResult Detail(int id)
        {
            Sidebar();
            DataTable dt    = bll.GetNewsDetail(id);
            string    title = "";
            string    dmsg  = "";

            if (dt.Rows.Count > 0)
            {
                title = dt.Rows[0]["Title"].ToString();
                dmsg  = dt.Rows[0]["DescMsg"].ToString();
            }
            ViewBag.Title2      = title;
            ViewBag.Keywords    = "塑蚁网-塑料行业资讯";
            ViewBag.description = dmsg;
            return(View());
        }