py.CurrentPageIndex = CurPage - 1;
lblCurPage.Text=CurPage.ToString();
lbtnFirstPage.NavigateUrl = Request.CurrentExecutionFilePath;
lbtnLastPage.NavigateUrl = Request.CurrentExecutionFilePath + "?Page=" + Convert.ToString(py.PageCount);
if (!py.IsFirstPage)
{
lbtnUpPage.NavigateUrl = Request.CurrentExecutionFilePath + "?Page=" + Convert.ToString(CurPage - 1);
我想在这里把URL重写成如:news.aspx/list-1.aspx 或者news-1.aspx
if (lbtnUpPage.NavigateUrl.Length == 0)
{
return ;
}
else
{
return Request.PathInfo.Substring(1);
lbtnUpPage.NavigateUrl = Request.CurrentExecutionFilePath + "/" + Convert.ToString(CurPage - 1);
我想在这里把URL重写成如:news.aspx/list-1.aspx 或者news-1.aspx
}
}
if (!py.IsLastPage)
{
lbtnDownPage.NavigateUrl = Request.CurrentExecutionFilePath + "?Page=" + Convert.ToString(CurPage + 1);
我想在这里把URL重写成如:news.aspx/list-1.aspx 或者news-1.aspx
}