public void Loadlist(Repeater rpt)
{
try
{
int sotin = (_typecat == 0 ? lnews.Getsotin(_Catid) : 100);
var list = lnews.Load_listnews(_Catid);
if (list.Count > 0)
{
if (_page != 0)
{
rpt.DataSource = list.Skip(sotin * _page - sotin).Take(sotin);
rpt.DataBind();
}
else
{
rpt.DataSource = list.Take(sotin);
rpt.DataBind();
}
ltrPage.Text = change.result(list.Count, sotin, _cat_seo_url, 0, _page, 1);
}
else { }
}
catch (Exception)
{
throw;
}
}