コード例 #1
0
ファイル: News.aspx.cs プロジェクト: CharlieWan/wsqp
 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"]);
 }
コード例 #2
0
ファイル: EditNews.aspx.cs プロジェクト: CharlieWan/wsqp
 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]);
 }