public void Loadlist() { try { int sotin = list_pro.Getsotin(_Catid); if (sotin == 0) { sotin = 20; } var list = list_pro.loadCatepro(_Catid); if (list.Count > 0) { if (_page != 0) { Re_Cat_Index.DataSource = list.Skip(sotin * _page - sotin).Take(sotin); Re_Cat_Index.DataBind(); } else { Re_Cat_Index.DataSource = list.Take(sotin); Re_Cat_Index.DataBind(); } Page.Visible = true; ltrPage.Text = change.result(list.Count, sotin, _cat_seo_url, _page, 1, 10); } else { Page.Visible = false; } } catch (Exception) { throw; } }
protected void load_catindex() { Re_Cat_Index.DataSource = index.Load_cate_index(10, 1, 0); Re_Cat_Index.DataBind(); }