<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title>0x001'Blogs</title>
		<link>http://0x001.com/</link>
		<description>我们已经走的太远,以至于忘记了为什么而出发.....&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 致力于ASP.NET(C#),网络安全&amp;nbsp;&amp;nbsp;QQ:339010</description>
		<copyright>Copyright (C) 2004 Security Angel Team [S4T] All Rights Reserved.</copyright>
		<generator>SaBlog-X Version 1.6 Build 20080806</generator>
		<lastBuildDate>Sun, 05 Sep 2010 04:41:33 +0000</lastBuildDate>
		<ttl>30</ttl>
		<item>
			<guid>http://0x001.com/?action=show&amp;id=23</guid>
			<title>Win7 x64 IIS运行ASP+Access故障完美解决方法(转)</title>
			<author>0x001</author>
			<description><![CDATA[<p><span style="widows: 2; text-transform: none; text-indent: 0px; border-collapse: separate; font: medium Simsun; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(0,0,0); word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" class="Apple-style-span"><span style="text-align: left; line-height: 19px; font-family: verdana, 'ms song', 宋体, Arial, 微软雅黑, Helvetica, sans-serif; font-size: 13px" class="Apple-style-span"><span style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; color: rgb(255,0,0); padding-top: 0px">问题1.<br style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px" />
An&nbsp;error&nbsp;occurred&nbsp;on&nbsp;the&nbsp;server&nbsp;when&nbsp;processing&nbsp;the&nbsp;URL.Please&nbsp;contact&nbsp;the&nbsp;system&nbsp;administrator</span><br style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px" />
<br style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px" />
解决方法：<br style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px" />
打开IIS7的asp设置，展开&ldquo;调试属性&rdquo;选项，&ldquo;将错误发送到浏览器&rdquo;这项默认的是False，改为True，然后会出现下面的错误：</span></span></p><br /><br /><a href="http://0x001.com/?action=show&amp;id=23" target="_blank">阅读全文</a><br /><br />]]></description>
			<link>http://0x001.com/?action=show&amp;id=23</link>
			<category domain="http://0x001.com/?cid=5">唠叨</category>
			<pubDate>2010-06-13 22:28</pubDate>
		</item>
		<item>
			<guid>http://0x001.com/?action=show&amp;id=22</guid>
			<title>某ORM操作笔记</title>
			<author>0x001</author>
			<description><![CDATA[<p>呵呵，某ORM操作笔记！正在学习该组件的设计思想！本来想自已写个，没想到人家写的和我想的差不多！刚好，拿来学习！</p><br /><br /><a href="http://0x001.com/?action=show&amp;id=22" target="_blank">阅读全文</a><br /><br />]]></description>
			<link>http://0x001.com/?action=show&amp;id=22</link>
			<category domain="http://0x001.com/?cid=9">ORM</category>
			<pubDate>2010-05-24 23:54</pubDate>
		</item>
		<item>
			<guid>http://0x001.com/?action=show&amp;id=21</guid>
			<title>UML 关系符号标记</title>
			<author>0x001</author>
			<description><![CDATA[<p><span style="widows: 2; text-transform: none; text-indent: 0px; border-collapse: separate; font: medium Simsun; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(0,0,0); word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" class="Apple-style-span"><span style="text-align: left; line-height: 21px; font-family: simsun; color: rgb(73,73,73); font-size: 14px" class="Apple-style-span">&nbsp;
<p style="padding-bottom: 0px; line-height: 21px; border-right-width: 0px; list-style-type: none; text-indent: 2em; margin: 0px 0px 5px; padding-left: 0px; padding-right: 0px; word-wrap: normal; border-top-width: 0px; border-bottom-width: 0px; word-break: normal; border-left-width: 0px; padding-top: 0px">类之间的关系</p>
<p style="padding-bottom: 0px; line-height: 21px; border-right-width: 0px; list-style-type: none; text-indent: 2em; margin: 0px 0px 5px; padding-left: 0px; padding-right: 0px; word-wrap: normal; border-top-width: 0px; border-bottom-width: 0px; word-break: normal; border-left-width: 0px; padding-top: 0px">&nbsp;<wbr></wbr>&nbsp;<wbr></wbr>UML把类之间的关系分为以下5种.</p>
<p style="padding-bottom: 0px; line-height: 21px; border-right-width: 0px; list-style-type: none; text-indent: 2em; margin: 0px 0px 5px; padding-left: 0px; padding-right: 0px; word-wrap: normal; border-top-width: 0px; border-bottom-width: 0px; word-break: normal; border-left-width: 0px; padding-top: 0px">&nbsp;<wbr></wbr>&nbsp;<wbr></wbr>●&nbsp;<wbr></wbr>关联：类A与类B的实例之间存在特定的对应关系</p>
<p style="padding-bottom: 0px; line-height: 21px; border-right-width: 0px; list-style-type: none; text-indent: 2em; margin: 0px 0px 5px; padding-left: 0px; padding-right: 0px; word-wrap: normal; border-top-width: 0px; border-bottom-width: 0px; word-break: normal; border-left-width: 0px; padding-top: 0px">&nbsp;<wbr></wbr>&nbsp;<wbr></wbr>●&nbsp;<wbr></wbr>依赖：类A访问类B提供的服务</p>
<p style="padding-bottom: 0px; line-height: 21px; border-right-width: 0px; list-style-type: none; text-indent: 2em; margin: 0px 0px 5px; padding-left: 0px; padding-right: 0px; word-wrap: normal; border-top-width: 0px; border-bottom-width: 0px; word-break: normal; border-left-width: 0px; padding-top: 0px">&nbsp;<wbr></wbr>&nbsp;<wbr></wbr>●&nbsp;<wbr></wbr>聚集：类A为整体类，类B为局部类，类A的对象由类B的对象组合而成</p>
<p style="padding-bottom: 0px; line-height: 21px; border-right-width: 0px; list-style-type: none; text-indent: 2em; margin: 0px 0px 5px; padding-left: 0px; padding-right: 0px; word-wrap: normal; border-top-width: 0px; border-bottom-width: 0px; word-break: normal; border-left-width: 0px; padding-top: 0px">&nbsp;<wbr></wbr>&nbsp;<wbr></wbr>●&nbsp;<wbr></wbr>泛化：类A继承类B</p>
<p style="padding-bottom: 0px; line-height: 21px; border-right-width: 0px; list-style-type: none; text-indent: 2em; margin: 0px 0px 5px; padding-left: 0px; padding-right: 0px; word-wrap: normal; border-top-width: 0px; border-bottom-width: 0px; word-break: normal; border-left-width: 0px; padding-top: 0px">&nbsp;<wbr></wbr>&nbsp;<wbr></wbr>●&nbsp;<wbr></wbr>实现：类A实现了B接口</p>
</span></span></p><br /><br /><a href="http://0x001.com/?action=show&amp;id=21" target="_blank">阅读全文</a><br /><br />]]></description>
			<link>http://0x001.com/?action=show&amp;id=21</link>
			<category domain="http://0x001.com/?cid=8">UML</category>
			<pubDate>2010-05-19 17:58</pubDate>
		</item>
		<item>
			<guid>http://0x001.com/?action=show&amp;id=20</guid>
			<title>更改MSSQL 数据库身份验证模式</title>
			<author>0x001</author>
			<description><![CDATA[<p>Microsoft SQL Server数据库装好后,发现在某些时候需要更改数据库身份验证模式.</p>
<p>这里共享自己编写并常用的Microsoft SQL Server数据库身份验证模式更改脚本.</p><br /><br /><a href="http://0x001.com/?action=show&amp;id=20" target="_blank">阅读全文</a><br /><br />]]></description>
			<link>http://0x001.com/?action=show&amp;id=20</link>
			<category domain="http://0x001.com/?cid=3">SQL</category>
			<pubDate>2010-04-22 09:32</pubDate>
		</item>
		<item>
			<guid>http://0x001.com/?action=show&amp;id=19</guid>
			<title>OPENDATASOURCE用法</title>
			<author>0x001</author>
			<description><![CDATA[<p>insert into OPENDATASOURCE(<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'SQLOLEDB',<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'Data Source=192.168.1.100;User ID=sa;Password=sa;database=pubs'<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ).pubs.dbo.jobs(job_desc) select Username from Users</p>
<p>mssql2005 or 2008 打开 OPENDATASOURCE:</p>
<p>exec sp_configure 'show advanced options',1<br />
reconfigure<br />
exec sp_configure 'Ad Hoc Distributed Queries',1<br />
reconfigure</p><br /><br /><a href="http://0x001.com/?action=show&amp;id=19" target="_blank">阅读全文</a><br /><br />]]></description>
			<link>http://0x001.com/?action=show&amp;id=19</link>
			<category domain="http://0x001.com/?cid=3">SQL</category>
			<pubDate>2010-03-26 20:48</pubDate>
		</item>
		<item>
			<guid>http://0x001.com/?action=show&amp;id=18</guid>
			<title>TJJTDS,弹JJ弹到死</title>
			<author>0x001</author>
			<description><![CDATA[<p><span style="widows: 2; text-transform: none; text-indent: 0px; border-collapse: separate; font: medium Simsun; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(0,0,0); word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" class="Apple-style-span"><span style="line-height: 24px; color: rgb(51,51,51); font-size: 14px" class="Apple-style-span">有三个人到非洲探险,不小心偷看到了一位酋长的女儿在洗澡。</span></span></p>
<p><span style="widows: 2; text-transform: none; text-indent: 0px; border-collapse: separate; font: medium Simsun; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(0,0,0); word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" class="Apple-style-span"><span style="line-height: 24px; color: rgb(51,51,51); font-size: 14px" class="Apple-style-span">被抓后,酋长问第一个人想死还是想被弹鸡鸡,他当然回答说弹鸡鸡。</span></span></p>
<p><span style="widows: 2; text-transform: none; text-indent: 0px; border-collapse: separate; font: medium Simsun; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(0,0,0); word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" class="Apple-style-span"><span style="line-height: 24px; color: rgb(51,51,51); font-size: 14px" class="Apple-style-span">于是被拉下去tjj50下,惨叫&hellip;&hellip;。</span></span></p>
<p><span style="widows: 2; text-transform: none; text-indent: 0px; border-collapse: separate; font: medium Simsun; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(0,0,0); word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" class="Apple-style-span"><span style="line-height: 24px; color: rgb(51,51,51); font-size: 14px" class="Apple-style-span">又问第二个人想死还是想被弹鸡鸡,他犹豫了一下,好死不如赖活,他也选择了弹鸡鸡,于是被拉下去tjj100下,极其刺耳恐怖的惨叫,被拖回来已经奄奄一息,而且jj好象已经完全废了。</span></span></p>
<p><span style="widows: 2; text-transform: none; text-indent: 0px; border-collapse: separate; font: medium Simsun; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(0,0,0); word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" class="Apple-style-span"><span style="line-height: 24px; color: rgb(51,51,51); font-size: 14px" class="Apple-style-span">又问第三个人,想死还是想被弹鸡鸡。他犹豫半天,看看他们两个如此痛苦,而且东西也坏了,觉得选死也许会出现奇迹,起码没有那么痛苦啊,所以就壮烈的回答说:死。</span></span></p>
<p><span style="widows: 2; text-transform: none; text-indent: 0px; border-collapse: separate; font: medium Simsun; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(0,0,0); word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" class="Apple-style-span"><span style="line-height: 24px; color: rgb(51,51,51); font-size: 14px" class="Apple-style-span">于是酋长说:&ldquo;拉下去,弹鸡鸡弹到死。&rdquo;</span></span></p><br /><br /><a href="http://0x001.com/?action=show&amp;id=18" target="_blank">阅读全文</a><br /><br />]]></description>
			<link>http://0x001.com/?action=show&amp;id=18</link>
			<category domain="http://0x001.com/?cid=5">唠叨</category>
			<pubDate>2010-03-05 19:18</pubDate>
		</item>
		<item>
			<guid>http://0x001.com/?action=show&amp;id=17</guid>
			<title>世界编程语言排行榜</title>
			<author>0x001</author>
			<description><![CDATA[<p><a href="http://www.tiobe.com/index.php/content/paperinfo/tpci/index.html">http://www.tiobe.com/index.php/content/paperinfo/tpci/index.html</a></p><br /><br /><a href="http://0x001.com/?action=show&amp;id=17" target="_blank">阅读全文</a><br /><br />]]></description>
			<link>http://0x001.com/?action=show&amp;id=17</link>
			<category domain="http://0x001.com/?cid=5">唠叨</category>
			<pubDate>2010-02-25 01:14</pubDate>
		</item>
		<item>
			<guid>http://0x001.com/?action=show&amp;id=16</guid>
			<title>哈,非常淫荡的Users提权</title>
			<author>0x001</author>
			<description><![CDATA[<p>最新的Windows提权,只需要Users用户即可!支持以下Windows版本:</p>
<p>&nbsp;&nbsp;&nbsp; - Windows 2000&nbsp;</p>
<p>&nbsp;&nbsp;&nbsp; - Windows XP&nbsp;</p>
<p>&nbsp;&nbsp;&nbsp; - Windows Server 2003&nbsp;</p>
<p>&nbsp;&nbsp;&nbsp; - Windows Vista&nbsp;</p>
<p>&nbsp;&nbsp;&nbsp; - Windows Server 2008&nbsp;</p>
<p>&nbsp;&nbsp;&nbsp; - Windows 7&nbsp;</p>
<p>看来新一轮的windows攻击风爆又要疯狂的开始了</p><br /><br /><a href="http://0x001.com/?action=show&amp;id=16" target="_blank">阅读全文</a><br /><br />]]></description>
			<link>http://0x001.com/?action=show&amp;id=16</link>
			<category domain="http://0x001.com/?cid=4">网络安全</category>
			<pubDate>2010-01-21 01:48</pubDate>
		</item>
		<item>
			<guid>http://0x001.com/?action=show&amp;id=15</guid>
			<title>Sov.RBAC v1.0 beta 1</title>
			<author>0x001</author>
			<description><![CDATA[<p>Sov.RBAC v1.0 beta 1 开发完成</p>
<p>开发环境:Windows 7 + Visual Studio 2008 + .NET Framework 3.5</p>
<p>1.0 beta 1 版本:</p>
<p>1,只支持MSSQL 2005 - 2008</p>
<p>2,必需开启Service Broker(Sov.RBAC 使用 SqlDependency 配合 MSSQL 2005以上版本的查询通知特性)</p>
<p>3,数据库结果如下:</p>
<p><img alt="" src="http://0x001.com/attachments/date_201001/thumb_ca35cb75a3a884e5c1c55423c566e6d6.jpg" /></p><br /><br /><a href="http://0x001.com/?action=show&amp;id=15" target="_blank">阅读全文</a><br /><br />]]></description>
			<link>http://0x001.com/?action=show&amp;id=15</link>
			<category domain="http://0x001.com/?cid=7">Sov.RBAC项目</category>
			<pubDate>2010-01-20 18:31</pubDate>
		</item>
		<item>
			<guid>http://0x001.com/?action=show&amp;id=13</guid>
			<title>使用Class替代Enum实现权限标识,对修改封闭,对扩展开放</title>
			<author>0x001</author>
			<description><![CDATA[<p>原来计划在RBAC的角色对应资源的权限字段,进行控制,使用Enum枚举类型!</p>
<p>但是考虑到通用性,模块封装成dll之后,不便修改!所以使用了class来替代Enum</p>
<p>该类使用示例如下:</p>
<div class="codeText">
<div class="codeHead">C#代码</div>
<ol class="dp-c">
    <li class="alt"><span><span class="comment">//实例化权限操作对象 </span><span>&nbsp;&nbsp;</span></span></li>
    <li><span>&nbsp;RBAC.Operate&nbsp;oper&nbsp;=&nbsp;</span><span class="keyword">new</span><span>&nbsp;RBAC.MyOperate();&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>&nbsp;<span>&nbsp;&nbsp;</span></li>
    <li><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;</span></li>
    <li class="alt"><span class="comment">//给权限对象添加权限值 </span><span>&nbsp;&nbsp;</span></li>
    <li><span>oper.AddChild(RBAC.MyOperate.Add); &nbsp;&nbsp;</span></li>
    <li class="alt"><span>oper.AddChild(RBAC.MyOperate.Delete); &nbsp;&nbsp;</span></li>
    <li><span>oper.AddChild(RBAC.MyOperate.Audit); &nbsp;&nbsp;</span></li>
    <li class="alt"><span>&nbsp;&nbsp;</span></li>
    <li><span class="comment">//称除&nbsp;Add&nbsp;权限 </span><span>&nbsp;&nbsp;</span></li>
    <li class="alt"><span>oper.RemoveChild(RBAC.MyOperate.Delete); &nbsp;&nbsp;</span></li>
    <li><span>&nbsp;&nbsp;</span></li>
    <li class="alt"><span class="comment">//判断是否有该权限 </span><span>&nbsp;&nbsp;</span></li>
    <li><span class="keyword">bool</span><span>&nbsp;yes&nbsp;=&nbsp;oper.IsDefined(RBAC.MyOperate.Add);&nbsp;&nbsp;</span></li>
</ol>
</div><br /><br /><a href="http://0x001.com/?action=show&amp;id=13" target="_blank">阅读全文</a><br /><br />]]></description>
			<link>http://0x001.com/?action=show&amp;id=13</link>
			<category domain="http://0x001.com/?cid=7">Sov.RBAC项目</category>
			<pubDate>2010-01-17 12:02</pubDate>
		</item>
		<item>
			<guid>http://0x001.com/?action=show&amp;id=12</guid>
			<title>C# SqlDependency 数据库查询通知</title>
			<author>0x001</author>
			<description><![CDATA[<p>先引用一段MDSN的备注:</p>
<p>&nbsp;SqlDependency 非常适用于使用缓存的情况，在这种情况下您的 ASP.NET 应用程序或中间层服务需要将某些信息缓存在内存中。SqlDependency 允许您在数据库中的原始数据发生更改时接收通知，以便刷新缓存。</p>
<p>若要建立依赖项，需要将一个 SqlDependency 对象与一个或多个 SqlCommand 对象关联。要接收通知，需要订阅 OnChange 事件。</p>
<p>SqlDependency 被设计为用在 ASP.NET 或中间层服务中，这里对数据库有活动依赖项的服务器的数量相对较少。它不应用在客户端应用程序中，因为其中可能有成百上千个客户端计算机将为单个数据库服务器建立 SqlDependency 对象。</p><br /><br /><a href="http://0x001.com/?action=show&amp;id=12" target="_blank">阅读全文</a><br /><br />]]></description>
			<link>http://0x001.com/?action=show&amp;id=12</link>
			<category domain="http://0x001.com/?cid=1">ASP.NET(C#)</category>
			<pubDate>2010-01-16 12:04</pubDate>
		</item>
		<item>
			<guid>http://0x001.com/?action=show&amp;id=11</guid>
			<title>现在开始着手做.NET RBAC通用权限管理项目</title>
			<author>0x001</author>
			<description><![CDATA[现在开始着手写一个通用的.NET RBAC项目

可以在.NET中通用,无论是WinForm,WebForm或是MVC中都可以使用

现在正在考虑如何方便扩展和二次开发,以便有特别需求的朋友也可以使用.<br /><br /><a href="http://0x001.com/?action=show&amp;id=11" target="_blank">阅读全文</a><br /><br />]]></description>
			<link>http://0x001.com/?action=show&amp;id=11</link>
			<category domain="http://0x001.com/?cid=7">Sov.RBAC项目</category>
			<pubDate>2010-01-15 23:42</pubDate>
		</item>
		<item>
			<guid>http://0x001.com/?action=show&amp;id=10</guid>
			<title>最近很少关注</title>
			<author>0x001</author>
			<description><![CDATA[最近比较少关注.
发现有的人思路越来淫荡,简直就太坏了!<br /><br /><a href="http://0x001.com/?action=show&amp;id=10" target="_blank">阅读全文</a><br /><br />]]></description>
			<link>http://0x001.com/?action=show&amp;id=10</link>
			<category domain="http://0x001.com/?cid=4">网络安全</category>
			<pubDate>2010-01-15 11:58</pubDate>
		</item>
		<item>
			<guid>http://0x001.com/?action=show&amp;id=9</guid>
			<title>出售整套远程视频教育网校平台</title>
			<author>0x001</author>
			<description><![CDATA[<p>本人手上有一套完整的远程教育校平台.(主要应用在网络远程培训,例如证券课程讲解等....)</p>
<p>类拟<a href="http://www.edu24ol.com/">http://www.edu24ol.com/</a>这样的平台</p>
<p>会员可以观看免费视频,</p>
<p>会员观看收费视频要通过报名,付费之后才可以观看.</p><br /><br /><a href="http://0x001.com/?action=show&amp;id=9" target="_blank">阅读全文</a><br /><br />]]></description>
			<link>http://0x001.com/?action=show&amp;id=9</link>
			<category domain="http://0x001.com/?cid=6">开发项目</category>
			<pubDate>2010-01-05 11:04</pubDate>
		</item>
		<item>
			<guid>http://0x001.com/?action=show&amp;id=8</guid>
			<title>ASP.NET MVC Pager Helper Extensions</title>
			<author>0x001</author>
			<description><![CDATA[<p>正在做一个项目,以前用别人写的Pager Helper总是感觉别扭,于是花了点时间,自已写了一个!</p>
<p>功能和效果和<a href="http://www.cnblogs.com">www.cnblogs.com</a>的完全一样,呵呵!</p>
<p>注:转载请注明:0x001.com原创,下载请看附件,在项目中引用即可</p>
<p>运行效果:</p>
<p><img src="http://0x001.com/attachments/date_201001/90ff8d87eeafaea43874de85663f38b9.jpg" alt="" /></p>
<ol>
    <li><span class="comment"><font color="#008000"><span class="comment">///&nbsp;&lt;summary&gt; </span><span><font color="#000000">&nbsp;&nbsp;</font></span> </font></span></li>
    <li><span><font color="#000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font></span><span class="comment">///&nbsp;Pager&nbsp;Helper&nbsp;Extensions </span><span><font color="#000000">&nbsp;&nbsp;</font></span></li>
    <li class="alt"><span><font color="#000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font></span><span class="comment">///&nbsp;&lt;/summary&gt; </span><span><font color="#000000">&nbsp;&nbsp;</font></span></li>
    <li><span><font color="#000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font></span><span class="comment">///&nbsp;&lt;param&nbsp;name=&quot;htmlHelper&quot;&gt;&lt;/param&gt; </span><span><font color="#000000">&nbsp;&nbsp;</font></span></li>
    <li class="alt"><span><font color="#000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font></span><span class="comment">///&nbsp;&lt;param&nbsp;name=&quot;currentPage&quot;&gt;当前页码&lt;/param&gt; </span><span><font color="#000000">&nbsp;&nbsp;</font></span></li>
    <li><span><font color="#000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font></span><span class="comment">///&nbsp;&lt;param&nbsp;name=&quot;pageSize&quot;&gt;页面显示的数据条目&lt;/param&gt; </span><span><font color="#000000">&nbsp;&nbsp;</font></span></li>
    <li class="alt"><span><font color="#000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font></span><span class="comment">///&nbsp;&lt;param&nbsp;name=&quot;totalCount&quot;&gt;总记录数&lt;/param&gt; </span><span><font color="#000000">&nbsp;&nbsp;</font></span></li>
    <li><span><font color="#000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font></span><span class="comment">///&nbsp;&lt;param&nbsp;name=&quot;toDisplayCount&quot;&gt;Helper要显示的页数&lt;/param&gt; </span><span><font color="#000000">&nbsp;&nbsp;</font></span></li>
    <li class="alt"><span><font color="#000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font></span><span class="comment">///&nbsp;&lt;returns&gt;&lt;/returns&gt; </span><span><font color="#000000">&nbsp;&nbsp;</font></span></li>
    <li><span><font color="#000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font></span><span class="keyword"><strong><font color="#0000ff">public</font></strong></span><span><font color="#000000">&nbsp;</font></span><span class="keyword"><strong><font color="#0000ff">static</font></strong></span><span><font color="#000000">&nbsp;</font></span><span class="keyword"><strong><font color="#0000ff">string</font></strong></span><span><font color="#000000">&nbsp;Pager(</font></span><span class="keyword"><strong><font color="#0000ff">this</font></strong></span><span><font color="#000000">&nbsp;HtmlHelper&nbsp;htmlHelper,&nbsp;</font></span><span class="keyword"><strong><font color="#0000ff">int</font></strong></span><span><font color="#000000">&nbsp;currentPage,&nbsp;</font></span><span class="keyword"><strong><font color="#0000ff">int</font></strong></span><span><font color="#000000">&nbsp;pageSize,&nbsp;</font></span><span class="keyword"><strong><font color="#0000ff">int</font></strong></span><span><font color="#000000">&nbsp;totalCount,&nbsp;</font></span><span class="keyword"><strong><font color="#0000ff">int</font></strong></span><span><font color="#000000">&nbsp;toDisplayCount) &nbsp;&nbsp;</font></span></li>
    <li class="alt"><span><font color="#000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;</font></span></li>
    <li><span><font color="#000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;RenderPager&nbsp;pager&nbsp;=&nbsp;</font></span><span class="keyword"><strong><font color="#0000ff">new</font></strong></span><span><font color="#000000">&nbsp;RenderPager(htmlHelper.ViewContext,currentPage,&nbsp;pageSize,totalCount,toDisplayCount); &nbsp;&nbsp;</font></span></li>
    <li class="alt"><span><font color="#000000">&nbsp;&nbsp;</font></span></li>
    <li><span><font color="#000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font></span><span class="keyword"><strong><font color="#0000ff">return</font></strong></span><span><font color="#000000">&nbsp;pager.RenderHtml(); &nbsp;&nbsp;</font></span></li>
    <li class="alt"><span><font color="#000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} </font></span></li>
</ol><br /><br /><a href="http://0x001.com/?action=show&amp;id=8" target="_blank">阅读全文</a><br /><br />]]></description>
			<link>http://0x001.com/?action=show&amp;id=8</link>
			<category domain="http://0x001.com/?cid=2">MVC</category>
			<pubDate>2010-01-03 00:16</pubDate>
		</item>
		<item>
			<guid>http://0x001.com/?action=show&amp;id=7</guid>
			<title>C#连接Oracle 的TNSNAMES.ORA配置</title>
			<author>0x001</author>
			<description><![CDATA[<p>使用C#连接Oracle 11g的配置信息存在于路径:11.1.0\db_1\network\admin\tnsnames.ora,该文件内容如下:</p>
<p>OADataSource =<br />
&nbsp; (DESCRIPTION =<br />
&nbsp;&nbsp;&nbsp; (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.0.52)(PORT = 1521))<br />
&nbsp;&nbsp;&nbsp; (CONNECT_DATA =<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (SERVER = DEDICATED)<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (SERVICE_NAME = OA.www)<br />
&nbsp;&nbsp;&nbsp; )&nbsp; )</p>
<p>其中:..............</p><br /><br /><a href="http://0x001.com/?action=show&amp;id=7" target="_blank">阅读全文</a><br /><br />]]></description>
			<link>http://0x001.com/?action=show&amp;id=7</link>
			<category domain="http://0x001.com/?cid=3">SQL</category>
			<pubDate>2009-12-06 01:16</pubDate>
		</item>
		<item>
			<guid>http://0x001.com/?action=show&amp;id=6</guid>
			<title>集成 VS2008 Team Foundation Server 和 Service Pack 1 的安装</title>
			<author>0x001</author>
			<description><![CDATA[1.到官方网站将 VS2008TeamFoundationServer90DayTrialCHSX1429252.iso 和 TFS90sp1-KB949786-CHS.exe下载到本地<br/><br/>

2.将TFS90SP1-KB949786-CHS.EXE放到C:\tfs\<br/><br/>

3.释放sp1补丁:	<br/><br/>
	C:\tfs>TFS90sp1-KB949786-CHS /extract: c:\tfs\sp1<br/><br/><br /><br /><a href="http://0x001.com/?action=show&amp;id=6" target="_blank">阅读全文</a><br /><br />]]></description>
			<link>http://0x001.com/?action=show&amp;id=6</link>
			<category domain="http://0x001.com/?cid=1">ASP.NET(C#)</category>
			<pubDate>2009-12-05 13:23</pubDate>
		</item>
		<item>
			<guid>http://0x001.com/?action=show&amp;id=5</guid>
			<title>616在线棋牌</title>
			<author>0x001</author>
			<description><![CDATA[<a href="http://www.616.cn" target="_blank">点击这里跳转616.cn</a><br/>
之前团队一起做的游戏项目，这个是演示平台，后台管理部分没有放出来！<br/>
测试可自行注册用户。<br/>
如果有朋友需要用到游戏部份，可以联系我！<br/>
QQ:633241<br/><br /><br /><a href="http://0x001.com/?action=show&amp;id=5" target="_blank">阅读全文</a><br /><br />]]></description>
			<link>http://0x001.com/?action=show&amp;id=5</link>
			<category domain="http://0x001.com/?cid=6">开发项目</category>
			<pubDate>2009-12-03 10:41</pubDate>
		</item>
		<item>
			<guid>http://0x001.com/?action=show&amp;id=4</guid>
			<title>C# 获得枚举描述等所有信息的应用</title>
			<author>0x001</author>
			<description><![CDATA[<p>using System;<br />
using System.ComponentModel;<br />
namespace ibo.Lottery.Entity<br />
{<br />
/// <summary></summary><br />
/// 股票当前状态<br />
/// <br />
public enum StockAppearanceOptions<br />
{<br />
[Description(&quot;停牌&quot;)]<br />
Suspension=0,</p><br /><br /><a href="http://0x001.com/?action=show&amp;id=4" target="_blank">阅读全文</a><br /><br />]]></description>
			<link>http://0x001.com/?action=show&amp;id=4</link>
			<category domain="http://0x001.com/?cid=1">ASP.NET(C#)</category>
			<pubDate>2009-12-03 10:30</pubDate>
		</item>
		<item>
			<guid>http://0x001.com/?action=show&amp;id=3</guid>
			<title>MSSQL 2005-2008 分页存储过程</title>
			<author>0x001</author>
			<description><![CDATA[<p>ALTER PROCEDURE [dbo].[sp_Page]<br />
@TableName varchar(150), --表名<br />
@Fields varchar(5000) = '*', --字段名(全部字段为*)<br />
@OrderField varchar(5000), --排序字段(必须!支持多字段)<br />
@sqlWhere varchar(5000) = Null,--条件语句(不用加where)<br />
@pageSize int, --每页多少条记录<br />
@pageIndex int = 1 , --指定当前为第几页<br />
@totalRecord int = 0,<br />
@TotalPage int output --返回总页数<br />
AS<br />
BEGIN</p><br /><br /><a href="http://0x001.com/?action=show&amp;id=3" target="_blank">阅读全文</a><br /><br />]]></description>
			<link>http://0x001.com/?action=show&amp;id=3</link>
			<category domain="http://0x001.com/?cid=3">SQL</category>
			<pubDate>2009-12-03 10:24</pubDate>
		</item>
	</channel>
</rss>
