呵,距上次版本到现在,已有半年时间了,本来一直没什么时候去整理的,但看到几乎每天都有朋友过来支持和下载,感觉如果我再不更新,那也感觉有点对不起大家了:D
因此现再次发布新版,希望大家继续支持,谢谢!
这次版本改动的也比较多,主要是对之前BUG的修复了完善了一些功能,详细更新说明请看下面吧:
********************************************************************
2.5版更新内容(2008-06-15)
********************************************************************
新功能:
1.实体操作类全部使用了缓存技术,有效提高运行效率
2.将操作方法再进行了一次封装,使得在页面层调用时代码简洁了很多,也方便很多了
3.增加HttpCompress控件,可有效将页面(包括CSS/JS)文件进行压缩以提高下载速度,为了看到效果,请使用
Fixfox并安装上FireBug插件然后再浏览相关页面,这时你可明显看到压缩前后的对比
4.增加CookieHepler类,方便操作管理Cookie
5.增加IPScanner类,可非常方便查询出访问者的IP以及此IP的真实地址位置
6.在Utility里增加了专门的时间处理相关方法,能格式化出各种时间类型格式
7.在Utility里增加了MD5加密功能函数,同时也增加了直接获取网站虚拟目录的函数
8.增加了高亮代码控件及相关演示
9.增加了标签云控件及相关演示
10.SqpPager控件也升级到2.5版了,改进如下:
1).现已去掉了缓存与非缓存的设置,直接默认全部使用了缓存,并且会自动判断查询条件有无更改,
如果2次查询的条件不同,则会重新获取数据,否则一直读取缓存中的数据
2).既然使用数字分页模式,也不需要另外去设置ShowCount的值,系统已会自动判断,去掉多余的显示
部分(之前必须设置ShowCount=2才可)
11.完善了类库帮助文档.
修复的BUG:
1.SqlPager控件修复了不能显示最后一页数据
2.SqlPager控件修复了不能根据传入的查询条件去获取最新数据(此问题在旧版的非缓存状态同时是
自定义数据源的情况下会出现)
3.SqlPager控件修复了在第一页时点上一页按钮仍然有效,但并没数据出来
4.修复了实体类操作时不能批量添加数据
5.修复了上传文件功能函数里否限制上传文件类型的问题
======================================================================
关于2.5版的使用说明:
1.关于HttpCompress控件的配置:
此控件并不需要在程序中调用,只需在Web.Config文件里做好相关的配置即可使用了,配置方法如下:
1)在<configuration>节下面添加以下代码:
[Codehighlighter] id=bbs.szblogs.com style='BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee'[Codeleft][Coderight][Codedv][Codeleft][Coderight]!--[Coderight][Codeb][Codeleft][Coderight][Codeb][Codeleft]Code highlighting produced by Actipro CodeHighlighter (freeware)[Coderight][Codeb][Codeleft]http://bbs.szblogs.com[Coderight][Codeb][Codeleft][Coderight][Codeb][Codeleft]--[Codeleft][Coderight][Codesp] style="color: #000000;"[Codeleft][Coderight][Codeb][Codeleft] [Coderight]/[Codesp][Codeleft][Coderight][Codesp] style="color: #0000FF;"[Codeleft]<[Coderight]/[Codesp][Codeleft][Coderight][Codesp] style="color: #800000;"[Codeleft]configSections[Coderight]/[Codesp][Codeleft][Coderight][Codesp] style="color: #0000FF;"[Codeleft]>[Coderight]/[Codesp][Codeleft][Coderight][Codesp] style="color: #000000;"[Codeleft][Coderight][Codeb][Codeleft] [Coderight]/[Codesp][Codeleft][Coderight][Codesp] style="color: #008000;"[Codeleft]<!--[Coderight]/[Codesp][Codeleft][Coderight][Codesp] style="color: #008000;"[Codeleft]HttpCompress配置开始[Coderight]/[Codesp][Codeleft][Coderight][Codesp] style="color: #008000;"[Codeleft]-->[Coderight]/[Codesp][Codeleft][Coderight][Codesp] style="color: #000000;"[Codeleft][Coderight][Codeb][Codeleft] [Coderight]/[Codesp][Codeleft][Coderight][Codesp] style="color: #0000FF;"[Codeleft]<[Coderight]/[Codesp][Codeleft][Coderight][Codesp] style="color: #800000;"[Codeleft]sectionGroup [Coderight]/[Codesp][Codeleft][Coderight][Codesp] style="color: #FF0000;"[Codeleft]name[Coderight]/[Codesp][Codeleft][Coderight][Codesp] style="color: #0000FF;"[Codeleft]="DCWeb"[Coderight]/[Codesp][Codeleft][Coderight][Codesp] style="color: #0000FF;"[Codeleft]>[Coderight]/[Codesp][Codeleft][Coderight][Codesp] style="color: #000000;"[Codeleft][Coderight][Codeb][Codeleft] [Coderight]/[Codesp][Codeleft][Coderight][Codesp] style="color: #0000FF;"[Codeleft]<[Coderight]/[Codesp][Codeleft][Coderight][Codesp] style="color: #800000;"[Codeleft]section [Coderight]/[Codesp][Codeleft][Coderight][Codesp] style="color: #FF0000;"[Codeleft]name[Coderight]/[Codesp][Codeleft][Coderight][Codesp] style="color: #0000FF;"[Codeleft]="HttpCompress"[Coderight]/[Codesp][Codeleft][Coderight][Codesp] style="color: #FF0000;"[Codeleft] type[Coderight]/[Codesp][Codeleft][Coderight][Codesp] style="color: #0000FF;"[Codeleft]="Winson.HttpCompress.Configuration, Winson.WControls"[Coderight]/[Codesp][Codeleft][Coderight][Codesp] style="color: #0000FF;"[Codeleft]/>[Coderight]/[Codesp][Codeleft][Coderight][Codesp] style="color: #000000;"[Codeleft][Coderight][Codeb][Codeleft] [Coderight]/[Codesp][Codeleft][Coderight][Codesp] style="color: #0000FF;"[Codeleft]</[Coderight]/[Codesp][Codeleft][Coderight][Codesp] style="color: #800000;"[Codeleft]sectionGroup[Coderight]/[Codesp][Codeleft][Coderight][Codesp] style="color: #0000FF;"[Codeleft]>[Coderight]/[Codesp][Codeleft][Coderight][Codesp] style="color: #000000;"[Codeleft][Coderight][Codeb][Codeleft] [Coderight]/[Codesp][Codeleft][Coderight][Codesp] style="color: #008000;"[Codeleft]<!--[Coderight]/[Codesp][Codeleft][Coderight][Codesp] style="color: #008000;"[Codeleft]HttpCompress配置结束[Coderight]/[Codesp][Codeleft][Coderight][Codesp] style="color: #008000;"[Codeleft]-->[Coderight]/[Codesp][Codeleft][Coderight][Codesp] style="color: #000000;"[Codeleft][Coderight][Codeb][Codeleft] [Coderight]/[Codesp][Codeleft][Coderight][Codesp] style="color: #0000FF;"[Codeleft]</[Coderight]/[Codesp][Codeleft][Coderight][Codesp] style="color: #800000;"[Codeleft]configSections[Coderight]/[Codesp][Codeleft][Coderight][Codesp] style="color: #0000FF;"[Codeleft]>[Coderight]/[Codesp][Codeleft][Coderight][Codesp] style="color: #000000;"[Codeleft][Coderight][Codeb][Codeleft] [Coderight][Codeb][Codeleft] [Coderight]/[Codesp][Codeleft][Coderight][Codesp] style="color: #008000;"[Codeleft]<!--[Coderight]/[Codesp][Codeleft][Coderight][Codesp] style="color: #008000;"[Codeleft]HttpCompress配置开始[Coderight]/[Codesp][Codeleft][Coderight][Codesp] style="color: #008000;"[Codeleft]-->[Coderight]/[Codesp][Codeleft][Coderight][Codesp] style="color: #000000;"[Codeleft][Coderight][Codeb][Codeleft] [Coderight]/[Codesp][Codeleft][Coderight][Codesp] style="color: #0000FF;"[Codeleft]<[Coderight]/[Codesp][Codeleft][Coderight][Codesp] style="color: #800000;"[Codeleft]DCWeb[Coderight]/[Codesp][Codeleft][Coderight][Codesp] style="color: #0000FF;"[Codeleft]>[Coderight]/[Codesp][Codeleft][Coderight][Codesp] style="color: #000000;"[Codeleft][Coderight][Codeb][Codeleft] [Coderight]/[Codesp][Codeleft][Coderight][Codesp] style="color: #0000FF;"[Codeleft]<[Coderight]/[Codesp][Codeleft][Coderight][Codesp] style="color: #800000;"[Codeleft]HttpCompress [Coderight]/[Codesp][Codeleft][Coderight][Codesp] style="color: #FF0000;"[Codeleft]compressionType[Coderight]/[Codesp][Codeleft][Coderight][Codesp] style="color: #0000FF;"[Codeleft]="GZip"[Coderight]/[Codesp][Codeleft][Coderight][Codesp] style="color: #0000FF;"[Codeleft]>[Coderight]/[Codesp][Codeleft][Coderight][Codesp] style="color: #000000;"[Codeleft][Coderight][Codeb][Codeleft] [Coderight]/[Codesp][Codeleft][Coderight][Codesp] style="color: #0000FF;"[Codeleft]<[Coderight]/[Codesp][Codeleft][Coderight][Codesp] style="color: #800000;"[Codeleft]IncludedMimeTypes[Coderight]/[Codesp][Codeleft][Coderight][Codesp] style="color: #0000FF;"[Codeleft]>[Coderight]/[Codesp][Codeleft][Coderight][Codesp] style="color: #000000;"[Codeleft] [Coderight][Codeb][Codeleft] [Coderight]/[Codesp][Codeleft][Coderight][Codesp] style="color: #0000FF;"[Codeleft]<[Coderight]/[Codesp][Codeleft][Coderight][Codesp] style="color: #800000;"[Codeleft]add [Coderight]/[Codesp][Codeleft][Coderight][Codesp] style="color: #FF0000;"[Codeleft]mime[Coderight]/[Codesp][Codeleft][Coderight][Codesp] style="color: #0000FF;"[Codeleft]="text/html"[Coderight]/[Codesp][Codeleft][Coderight][Codesp] style="color: #0000FF;"[Codeleft]/>[Coderight]/[Codesp][Codeleft][Coderight][Codesp] style="color: #000000;"[Codeleft][Coderight][Codeb][Codeleft] [Coderight]/[Codesp][Codeleft][Coderight][Codesp] style="color: #0000FF;"[Codeleft]</[Coderight]/[Codesp][Codeleft][Coderight][Codesp] style="color: #800000;"[Codeleft]IncludedMimeTypes[Coderight]/[Codesp][Codeleft][Coderight][Codesp] style="color: #0000FF;"[Codeleft]>[Coderight]/[Codesp][Codeleft][Coderight][Codesp] style="color: #000000;"[Codeleft][Coderight][Codeb][Codeleft] [Coderight]/[Codesp][Codeleft][Coderight][Codesp] style="color: #008000;"[Codeleft]<!--[Coderight]/[Codesp][Codeleft][Coderight][Codesp] style="color: #008000;"[Codeleft]<ExcludedMimeTypes>[Coderight][Codeb][Codeleft] <add mime="text/html" />[Coderight][Codeb][Codeleft] </ExcludedMimeTypes>[Coderight][Codeb][Codeleft] <ExcludedPaths>[Coderight][Codeb][Codeleft] <add path="~/default.aspx" />[Coderight][Codeb][Codeleft] </ExcludedPaths>[Coderight]/[Codesp][Codeleft][Coderight][Codesp] style="color: #008000;"[Codeleft]-->[Coderight]/[Codesp][Codeleft][Coderight][Codesp] style="color: #000000;"[Codeleft][Coderight][Codeb][Codeleft][Coderight][Codeb][Codeleft] [Coderight]/[Codesp][Codeleft][Coderight][Codesp] style="color: #0000FF;"[Codeleft]</[Coderight]/[Codesp][Codeleft][Coderight][Codesp] style="color: #800000;"[Codeleft]HttpCompress[Coderight]/[Codesp][Codeleft][Coderight][Codesp] style="color: #0000FF;"[Codeleft]>[Coderight]/[Codesp][Codeleft][Coderight][Codesp] style="color: #000000;"[Codeleft][Coderight][Codeb][Codeleft] [Coderight]/[Codesp][Codeleft][Coderight][Codesp] style="color: #0000FF;"[Codeleft]</[Coderight]/[Codesp][Codeleft][Coderight][Codesp] style="color: #800000;"[Codeleft]DCWeb[Coderight]/[Codesp][Codeleft][Coderight][Codesp] style="color: #0000FF;"[Codeleft]>[Coderight]/[Codesp][Codeleft][Coderight][Codesp] style="color: #000000;"[Codeleft][Coderight][Codeb][Codeleft] [Coderight]/[Codesp][Codeleft][Coderight][Codesp] style="color: #008000;"[Codeleft]<!--[Coderight]/[Codesp][Codeleft][Coderight][Codesp] style="color: #008000;"[Codeleft]HttpCompress配置结束[Coderight]/[Codesp][Codeleft][Coderight][Codesp] style="color: #008000;"[Codeleft]-->[Coderight]/[Codesp][Codeleft][Coderight]/[Codedv][Codeleft][/Codehighlighter]
2)在<httpHandlers>节下面添加以下代码:
[Codehighlighter] id=bbs.szblogs.com style='BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee'[Codeleft][Coderight][Codedv][Codeleft][Coderight]!--[Coderight][Codeb][Codeleft][Coderight][Codeb][Codeleft]Code highlighting produced by Actipro CodeHighlighter (freeware)[Coderight][Codeb][Codeleft]http://bbs.szblogs.com[Coderight][Codeb][Codeleft][Coderight][Codeb][Codeleft]--[Codeleft][Coderight][Codeim] src="/Images/OutliningIndicators/None.gif" align="top"/[Codeleft][Coderight][Codesp] style="color: #000000;"[Codeleft][Coderight][Codeb][Codeleft][Coderight][Codeim] src="/Images/OutliningIndicators/None.gif" align="top"/[Codeleft] [Coderight]/[Codesp][Codeleft][Coderight][Codesp] style="color: #008000;"[Codeleft]<!--[Coderight]/[Codesp][Codeleft][Coderight][Codesp] style="color: #008000;"[Codeleft]HttpCompress配置开始[Coderight]/[Codesp][Codeleft][Coderight][Codesp] style="color: #008000;"[Codeleft]-->[Coderight]/[Codesp][Codeleft][Coderight][Codesp] style="color: #000000;"[Codeleft][Coderight][Codeb][Codeleft][Coderight][Codeim] src="/Images/OutliningIndicators/None.gif" align="top"/[Codeleft] [Coderight]/[Codesp][Codeleft][Coderight][Codesp] style="color: #0000FF;"[Codeleft]<[Coderight]/[Codesp][Codeleft][Coderight][Codesp] style="color: #800000;"[Codeleft]add [Coderight]/[Codesp][Codeleft][Coderight][Codesp] style="color: #FF0000;"[Codeleft]verb[Coderight]/[Codesp][Codeleft][Coderight][Codesp] style="color: #0000FF;"[Codeleft]="*"[Coderight]/[Codesp][Codeleft][Coderight][Codesp] style="color: #FF0000;"[Codeleft] path[Coderight]/[Codesp][Codeleft][Coderight][Codesp] style="color: #0000FF;"[Codeleft]="js.axd,css.axd"[Coderight]/[Codesp][Codeleft][Coderight][Codesp] style="color: #FF0000;"[Codeleft] type[Coderight]/[Codesp][Codeleft][Coderight][Codesp] style="color: #0000FF;"[Codeleft]="Winson.HttpCompress.CompressionHandler,Winson.WControls"[Coderight]/[Codesp][Codeleft][Coderight][Codesp] style="color: #0000FF;"[Codeleft]/>[Coderight]/[Codesp][Codeleft][Coderight][Codesp] style="color: #000000;"[Codeleft][Coderight][Codeb][Codeleft][Coderight][Codeim] src="/Images/OutliningIndicators/None.gif" align="top"/[Codeleft] [Coderight]/[Codesp][Codeleft][Coderight][Codesp] style="color: #008000;"[Codeleft]<!--[Coderight]/[Codesp][Codeleft][Coderight][Codesp] style="color: #008000;"[Codeleft]HttpCompress配置结束[Coderight]/[Codesp][Codeleft][Coderight][Codesp] style="color: #008000;"[Codeleft]-->[Coderight]/[Codesp][Codeleft][Coderight][Codesp] style="color: #000000;"[Codeleft][Coderight][Codeb][Codeleft][Coderight][Codeim] src="/Images/OutliningIndicators/None.gif" align="top"/[Codeleft][Coderight]/[Codesp][Codeleft][Coderight]/[Codedv][Codeleft][/Codehighlighter]
3)在<httpModules>节下面添加以下代码:
[Codehighlighter] id=bbs.szblogs.com style='BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee'[Codeleft][Coderight][Codedv][Codeleft][Coderight]!--[Coderight][Codeb][Codeleft][Coderight][Codeb][Codeleft]Code highlighting produced by Actipro CodeHighlighter (freeware)[Coderight][Codeb][Codeleft]http://bbs.szblogs.com[Coderight][Codeb][Codeleft][Coderight][Codeb][Codeleft]--[Codeleft][Coderight][Codeim] src="/Images/OutliningIndicators/None.gif" align="top"/[Codeleft][Coderight][Codesp] style="color: #000000;"[Codeleft][Coderight][Codeb][Codeleft][Coderight][Codeim] src="/Images/OutliningIndicators/None.gif" align="top"/[Codeleft] [Coderight]/[Codesp][Codeleft][Coderight][Codesp] style="color: #008000;"[Codeleft]<!--[Coderight]/[Codesp][Codeleft][Coderight][Codesp] style="color: #008000;"[Codeleft]HttpCompress配置开始[Coderight]/[Codesp][Codeleft][Coderight][Codesp] style="color: #008000;"[Codeleft]-->[Coderight]/[Codesp][Codeleft][Coderight][Codesp] style="color: #000000;"[Codeleft][Coderight][Codeb][Codeleft][Coderight][Codeim] src="/Images/OutliningIndicators/None.gif" align="top"/[Codeleft] [Coderight]/[Codesp][Codeleft][Coderight][Codesp] style="color: #0000FF;"[Codeleft]<[Coderight]/[Codesp][Codeleft][Coderight][Codesp] style="color: #800000;"[Codeleft]add [Coderight]/[Codesp][Codeleft][Coderight][Codesp] style="color: #FF0000;"[Codeleft]name[Coderight]/[Codesp][Codeleft][Coderight][Codesp] style="color: #0000FF;"[Codeleft]="HttpCompressModule"[Coderight]/[Codesp][Codeleft][Coderight][Codesp] style="color: #FF0000;"[Codeleft] type[Coderight]/[Codesp][Codeleft][Coderight][Codesp] style="color: #0000FF;"[Codeleft]="Winson.HttpCompress.HttpModule,Winson.WControls"[Coderight]/[Codesp][Codeleft][Coderight][Codesp] style="color: #0000FF;"[Codeleft]/>[Coderight]/[Codesp][Codeleft][Coderight][Codesp] style="color: #000000;"[Codeleft][Coderight][Codeb][Codeleft][Coderight][Codeim] src="/Images/OutliningIndicators/None.gif" align="top"/[Codeleft] [Coderight]/[Codesp][Codeleft][Coderight][Codesp] style="color: #008000;"[Codeleft]<!--[Coderight]/[Codesp][Codeleft][Coderight][Codesp] style="color: #008000;"[Codeleft]HttpCompress配置结束[Coderight]/[Codesp][Codeleft][Coderight][Codesp] style="color: #008000;"[Codeleft]-->[Coderight]/[Codesp][Codeleft][Coderight][Codesp] style="color: #000000;"[Codeleft][Coderight][Codeb][Codeleft][Coderight][Codeim] src="/Images/OutliningIndicators/None.gif" align="top"/[Codeleft][Coderight]/[Codesp][Codeleft][Coderight]/[Codedv][Codeleft][/Codehighlighter]
完成。
同时附上使用了HttpCompress前后的页面文件大小对比:
没有使用HttpCompress:


使用了HttpCompress后:

另要说明一下的是,页面中的JS文件和CSS文件的引用必须都放到 <head>里面,否则将不会被压缩的2.在之前版本里的 Winson.Bll 项目是为ProMesh做的,现在已改为专门为实体类做的业务层,而原来的
ProMesh的后台代码均放到 Winson.ProMeshCode 项目里了.
======================================================================
好了,以下给出下载地址,同样,为了想知道有多少朋友支持,因此我还是将下载地址限制为只能回复才可下载,大家的支持就是我的动力啊,呵呵
下载地址:
附:
Winson.Framework 2.0更新发布说明:http://bbs.szblogs.com/showtopic-1546.htmlWinson.Framework 1.5更新发布说明:http://bbs.szblogs.com/showtopic-571.htmlWinson.Framework 1.0发布说明:http://bbs.szblogs.com/showtopic-137.htmlWinson.Framework 搭建FLASH教程:http://bbs.szblogs.com/showtopic-1598.html