public void BinData() { NewsSystem newsSystem = new NewsSystem(); if (nClassID > 0) { List_News.DataSource = newsSystem.Get_News(AspNetPager1.StartRecordIndex, AspNetPager1.EndRecordIndex, nClassID); } else { List_News.DataSource = newsSystem.Get_News(AspNetPager1.StartRecordIndex, AspNetPager1.EndRecordIndex); } List_News.DataBind(); }
public void BinData() { NewsSystem newsSystem = new NewsSystem(); News_List.DataSource = newsSystem.Get_News(AspNetPager1.StartRecordIndex, AspNetPager1.EndRecordIndex); News_List.DataBind(); }