<!--显示分页页码-->
<asp:Label ID="ShowPageNumber" Font-Size="14px" runat="server"> </asp:Label>
/// <summary>
////// </summary>
/// <param name="strNews">新闻内容</param>
/// <param name="page">页码参数</param>
protected void GetNews(string strNews, int page)
{
string[] temp = strNews.Split('%'); //获取插入的分页符
if (temp.Length <= 1)
{
newcontent = strNews; //文章内容
}
else
{
ShowPageNumber.Text = "共" + temp.Length + "页 ";
for (int i = 0; i < temp.Length; i++)
{
ShowPageNumber.Text += ("[<a href =newshow.aspx?id=" + Request["id"].ToString() + "&page=" + i + ">" + (i + 1) + "</a>] ");
}
newcontent = temp[page].ToString();
}
}