Using System;
Using System. Collections;
Using System. Configuration;
Using System. Data;
Using System. Linq;
Using System. Web;
Using System. Web. Security;
Using System. Web. UI;
Using System. Web. UI. HtmlControls;
Using System. Web. UI. WebControls;
Using System. Web. UI. WebControls. WebParts;
Using System. Xml. Linq;
Public partial class newshow: System. Web. UI. Page
{
Protected void Page_Load (object sender, EventArgs e)
{
If (! IsPostBack)
{
Shownews ();
}
}
Private void shownews ()
{
DataTable dt = new DataTable ();
If (Cache ["ShowNews"]! = Null)
{
Dt = (DataTable) Cache. Get ("ShowNews ");
}
Else
{
Int strwhere = 0;
Cn1yw. BLL. Article bll = new Cn1yw. BLL. Article ();
DataSet ds = new DataSet ();
Ds = bll. newshow (10, strwhere );
Dt = ds. Tables [0];
Cache. Insert ("ShowNews", dt, null, DateTime. Now. AddMinutes (720), TimeSpan. Zero );
}
}
}