Asp Gridview结合模糊查询(全文索引)的分页(9)
{
int CurrentCountP = (int.Parse(CurrentCount.Text) - 1) * 5;
int NumP = CurrentCountP - 5;
QuerryContent(CurrentCountP, NumP);
CurrentCount.Text = (int.Parse(CurrentCount.Text) - 1).ToString();
if (int.Parse(CurrentCount.Text) == 1)
{
PrevePage.Enabled = false;
FirstPage.Enabled = false;
LastPage.Enabled = true;
NextPage.Enabled = true;
}
else
{
PrevePage.Enabled = true;
NextPage.Enabled = true;
LastPage.Enabled = true;
FirstPage.Enabled = true;
}
}
else if (Command == "NextPage")
{
int CurrentCountN = (int.Parse(CurrentCount.Text) + 1) * 5;
int NumN = CurrentCountN - 5;
QuerryContent(CurrentCountN, NumN);
相关新闻>>
- 发表评论
-
- 最新评论 更多>>