Example #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         if (Request["id"] != null)
         {
             newsLogic pageLogic = new newsLogic();
             DataTable dt        = pageLogic.QueryNewByID(Request["id"].ToString());
             if (dt.Rows.Count != 0)
             {
                 lblTitle.Text   = dt.Rows[0]["new_title"].ToString();
                 lblContent.Text = dt.Rows[0]["new_content"].ToString();
             }
         }
     }
 }