string m_strPageInfo = ""; for (int i = 1; i = m_intTotalPage; i++) { if (i == m_intCurrentPage) m_strPageInfo += "[" + i + "]"; else m_strPageInfo += " a href=?ps=" + i + ">[" + i + "]/a> ";
} if (m_intCurrentPage > 1) m_strPageInfo = "a href=?ps=" + (m_intCurrentPage - 1) + ">上一页/a>" + m_strPageInfo; if (m_intCurrentPage m_intTotalPage) m_strPageInfo += "a href=?ps=" + (m_intCurrentPage + 1) + ">下一页/a>"; //输出显示各个页码 this.ShowPageNumber.Text = "p>/p>" + m_strPageInfo;