Example #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            IDictionary <string, DataTable> dict = new Dictionary <string, DataTable>();
            DataTable dt = new ZhongLi.BLL.News().GetList("").Tables[0];

            dt.Columns[0].ColumnName = "ID";
            dict.Add("order", dt);
            PublicMethod.DumpExcel(HttpContext.Current, "order", dict);
        }
Example #2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (Request.QueryString["n"] != null)
     {
         int  id = Convert.ToInt32(Request.QueryString["n"]);
         News n  = new ZhongLi.BLL.News().GetModel(id);
         title = n.Title;
         //ltlCon.Text = n.NewsCon;
         Response.Redirect(n.NewsCon);
     }
 }