예제 #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            id = ConvertUtility.ToInt32(Request.QueryString["id"]);
            if (id > 0)
            {
                DataSet ds = TintucController.WebGetNewsInfoCache(id);
                if (ds != null && ds.Tables[0].Rows.Count > 0)
                {
                    CatName = ds.Tables[0].Rows[0]["ParentName"].ToString();
                    catID   = ConvertUtility.ToInt32(ds.Tables[0].Rows[0]["ParentId"].ToString());

                    DetailName = ds.Tables[0].Rows[0]["Title"].ToString();

                    rptDetail.DataSource = ds.Tables[0];
                    rptDetail.DataBind();
                }
            }
        }