温馨提示:代码在线浏览功能只能做为源码浏览参考,不能展示项目的全部,如果想更进一步了解该代码请下载:Asp.Net许愿墙系统源码
当前文件路径:XuYuanQiang/App_Code/Html.cs

1using System; 2
using System.IO; 3
using System.Text; 4
using System.Data.SqlClient; 5
using System.Configuration; 6
using System.Data; 7
//源码下载及讨论地址:http://www.51aspx.com/CV/XuYuanQiang 8
namespace pizi 9
{ 10
/// <summary> 11
/// Html 的摘要说明。 12
/// </summary> 13
public class Html 14
{ 15
int pageSize; 16
17
int currentPage = 0; 18
int tempNewsCount = 0; 19
int currentNewsCount = 0; //累计的条数 20
int pageCount; 21
string newsList = null; 22
string htmPath = null; 23
SqlDataReader dr; 24
25
public int NewsPageSize 26
{ 27
get{return pageSize;} 28
set{pageSize = value;} 29
} 30
31
public int CurrentPage 32
{ 33
get{return currentPage;} 34
set{currentPage = value;} 35
} 36
37
读入模板文件 55
56
57
得到总的页数 65
66
得到总的新闻条数 86
87
88
分页 130
131
} 132
} 133





}