Exemplo n.º 1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     int id = Convert.ToInt32(Context.Request.QueryString["id"]);
     BLL.News bllNews = new BLL.News();
       DataTable dt= bllNews.GetNewsById(id);
       sbHtml.Append(dt.Rows[0]["ncontent"]);
 }
Exemplo n.º 2
0
 int LoadOldNews()
 {
     int id = Convert.ToInt32(Request.QueryString["id"]);
     BLL.News bllNews = new BLL.News();
     DataTable dt = bllNews.GetNewsById(id);
     title = dt.Rows[0][1].ToString();
     content = dt.Rows[0][2].ToString();
     return  Convert.ToInt32(dt.Rows[0][5]);
 }