﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>博客园-信仰志</title><link>http://www.cnblogs.com/drw/</link><description>我们需要一个信仰，一个神！</description><language>zh-cn</language><lastBuildDate>Mon, 13 Oct 2008 06:16:12 GMT</lastBuildDate><pubDate>Mon, 13 Oct 2008 06:16:12 GMT</pubDate><ttl>60</ttl><item><title>Visual Studio 2008 Service Pack 1 中文版终于有了</title><link>http://www.cnblogs.com/drw/archive/2008/08/13/vs-2008-sp1-released.html</link><dc:creator>七月(Lost)</dc:creator><author>七月(Lost)</author><pubDate>Wed, 13 Aug 2008 03:47:00 GMT</pubDate><guid>http://www.cnblogs.com/drw/archive/2008/08/13/vs-2008-sp1-released.html</guid><wfw:comment>http://www.cnblogs.com/drw/comments/1266676.html</wfw:comment><comments>http://www.cnblogs.com/drw/archive/2008/08/13/vs-2008-sp1-released.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://www.cnblogs.com/drw/comments/commentRss/1266676.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/drw/services/trackbacks/1266676.html</trackback:ping><description><![CDATA[不用多说了：<br/>
Microsoft Visual Studio 2008 Service Pack 1 (iso)<br/>
http://www.microsoft.com/downloads/details.aspx?displaylang=zh-cn&FamilyID=27673c47-b3b5-4c67-bd99-84e525b5ce61<br/>
<br/>
Visual Studio 2008 Team Foundation Server Service Pack 1(iso)<br/>
http://www.microsoft.com/downloads/details.aspx?displaylang=zh-cn&FamilyID=9e40a5b6-da41-43a2-a06d-3cee196bfe3d<br/>
<br/>
Microsoft .NET Framework 3.5 Service Pack 1<br/>
http://www.microsoft.com/downloads/details.aspx?displaylang=zh-cn&FamilyID=ab99342f-5d1a-413d-8319-81da479ab0d7<br/><img src ="http://www.cnblogs.com/drw/aggbug/1266676.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/42960/" target="_blank">[新闻]Facebook创始人:信息共享或存摩尔定律</a><br/><a href="http://www.cnblogs.com" target="_blank">博客园首页</a>&nbsp;<a href="http://space.cnblogs.com" target="_blank">社区</a>&nbsp;<a href="http://news.cnblogs.com" target="_blank">新闻频道</a>&nbsp;<a href="http://space.cnblogs.com/group.htm" target="_blank">小组</a>&nbsp;<a href="http://space.cnblogs.com/q" target="_blank">博问</a>&nbsp;<a href="http://wz.cnblogs.com/" target="_blank">网摘</a>&nbsp;<a href="http://space.cnblogs.com/ing" target="_blank">闪存</a>]]></description></item><item><title>看完了奋斗。收集了一些经典语录</title><link>http://www.cnblogs.com/drw/archive/2008/07/21/fendou.html</link><dc:creator>七月(Lost)</dc:creator><author>七月(Lost)</author><pubDate>Sun, 20 Jul 2008 19:06:00 GMT</pubDate><guid>http://www.cnblogs.com/drw/archive/2008/07/21/fendou.html</guid><wfw:comment>http://www.cnblogs.com/drw/comments/1247284.html</wfw:comment><comments>http://www.cnblogs.com/drw/archive/2008/07/21/fendou.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnblogs.com/drw/comments/commentRss/1247284.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/drw/services/trackbacks/1247284.html</trackback:ping><description><![CDATA[<div id="Published By Juziyue:[4]2_9653D99A4244407AAE018F34B2916C24_25D25738BD504552B9AF4A7E4A15CC8C"><DIV>一个人，一生中可能做过很多好事，他都会忘记。但等他到老的时候，真正记起来的是他做过的坏事。<BR<font><BR></font>什么叫坏事？<BR<font><BR></font>坏事就是那些，你怎么忘也忘不了的事儿，不管是出于什么原因，我们不得不犯下一些必须犯的错误，那些错误无法补救，也不会被忘记，而那些错误会令人忧伤，也许人生就是这样子啊。</DIV><DIV><BR<font><BR></font>女人喜欢你，有好坏两个方面，我希望你以后能够慎重对待，一个人能干成一件事，但同时，也能毁掉一件事，特别是女人，他们用另一种方式去思考，这你是没法把握的，而你能把握她们的原则，那就是向她们提供安全感与舒适感。</DIV><DIV>&nbsp;</DIV><DIV>你对女人的爱护不会白白流走，她们真正的本事是给你生个孩子，那是人生最后的安慰。</DIV><DIV>&nbsp;</DIV><DIV>一个生意人，一个成功的生意人，选择一个稳定的女人那是最重要的。</DIV><DIV>&nbsp;</DIV><DIV>每个人，都只能年轻一次，这是人生最邪恶的地方。</DIV><DIV>&nbsp;</DIV><DIV>有一天，你变老了，你可以不再轻信自己或者别人，你就可以逃过很多伤害，但你也因此失去了活力，失去猛地撞向尖刀的那种切切实实的SUO痛，没错，最终你是得到了平安，世故，那是逃避永恒痛苦的唯一方式</DIV><DIV>&nbsp;</DIV><DIV>你不觉得这像鬼迷心窍吗？不错啊，如果换成是我的话，我也喜欢夏琳，很难找到不喜欢她的理由，是吗？<BR<font><BR></font>但是，别为她改变你自己，我希望你成功，叫她跟着你的生活节奏走，不然，你会因为失去自我而被她控制。</DIV><DIV><BR<font><BR></font>如果，你还在这个世界存在着，那么，这个世界无论什么样，对我都是有意义的；但如果你不在了，无论这个世界有多么好，它在我眼里也只是一片荒漠，而我就像是一个孤魂野鬼。</DIV> <p></p></div><img src ="http://www.cnblogs.com/drw/aggbug/1247284.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/42959/" target="_blank">[新闻]微软承认Vista用户账户控制功能有问题</a><br/><a href="http://www.cnblogs.com" target="_blank">博客园首页</a>&nbsp;<a href="http://space.cnblogs.com" target="_blank">社区</a>&nbsp;<a href="http://news.cnblogs.com" target="_blank">新闻频道</a>&nbsp;<a href="http://space.cnblogs.com/group.htm" target="_blank">小组</a>&nbsp;<a href="http://space.cnblogs.com/q" target="_blank">博问</a>&nbsp;<a href="http://wz.cnblogs.com/" target="_blank">网摘</a>&nbsp;<a href="http://space.cnblogs.com/ing" target="_blank">闪存</a>]]></description></item><item><title>为幸福让道</title><link>http://www.cnblogs.com/drw/archive/2007/04/14/give_way_for_blessedness.html</link><dc:creator>七月(Lost)</dc:creator><author>七月(Lost)</author><pubDate>Sat, 14 Apr 2007 13:27:00 GMT</pubDate><guid>http://www.cnblogs.com/drw/archive/2007/04/14/give_way_for_blessedness.html</guid><wfw:comment>http://www.cnblogs.com/drw/comments/713588.html</wfw:comment><comments>http://www.cnblogs.com/drw/archive/2007/04/14/give_way_for_blessedness.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnblogs.com/drw/comments/commentRss/713588.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/drw/services/trackbacks/713588.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 那天早上，一辆公交车正在行驶着，车上都是去上班的人。忽然，从一旁的马路上冲出一辆车，公交车一个急刹后停住了。只见那是一辆婚礼的摄像车，它的后面是一列长长的迎亲队伍，行驶得很缓慢。乘客开始抱怨上班要迟到了。公交车司机静静地坐在位子上，不时的按着喇叭。<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 有人对司机说：“你关按喇叭不行，他们不可能给你让道的，倒不如从车队的空隙中冲过去。”<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 司机回过头来，笑着说：“我按喇叭不时催他们给我退让，我是为他们祝福呢！”<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 顿了顿，他又说：“别人结婚是件幸福的事。我们有机会为别人的幸福让一次道，这不也是一件幸福的事吗？”<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 满车的乘客霎时安静下来了。<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 给别人的幸福让道，是一件幸福的事----有这种心情的人，必定也是一个幸福的人。<BR><BR><FONT color=#ffffff>今日文摘 2007年4月期62页</FONT><img src ="http://www.cnblogs.com/drw/aggbug/713588.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/42958/" target="_blank">[新闻]资本寒冬侵袭中国视频网站 营销春天或不远</a><br/><a href="http://www.cnblogs.com" target="_blank">博客园首页</a>&nbsp;<a href="http://space.cnblogs.com" target="_blank">社区</a>&nbsp;<a href="http://news.cnblogs.com" target="_blank">新闻频道</a>&nbsp;<a href="http://space.cnblogs.com/group.htm" target="_blank">小组</a>&nbsp;<a href="http://space.cnblogs.com/q" target="_blank">博问</a>&nbsp;<a href="http://wz.cnblogs.com/" target="_blank">网摘</a>&nbsp;<a href="http://space.cnblogs.com/ing" target="_blank">闪存</a>]]></description></item><item><title>SQL取每课程前两名学生名单</title><link>http://www.cnblogs.com/drw/archive/2007/04/12/sql_gettop2.html</link><dc:creator>七月(Lost)</dc:creator><author>七月(Lost)</author><pubDate>Wed, 11 Apr 2007 16:20:00 GMT</pubDate><guid>http://www.cnblogs.com/drw/archive/2007/04/12/sql_gettop2.html</guid><wfw:comment>http://www.cnblogs.com/drw/comments/709783.html</wfw:comment><comments>http://www.cnblogs.com/drw/archive/2007/04/12/sql_gettop2.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnblogs.com/drw/comments/commentRss/709783.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/drw/services/trackbacks/709783.html</trackback:ping><description><![CDATA[有表 <BR>
<DIV 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"><SPAN style="COLOR: #0000ff">CREATE</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">TABLE</SPAN><SPAN style="COLOR: #000000">&nbsp;成绩表<BR>(<BR>学号&nbsp;</SPAN><SPAN style="FONT-WEIGHT: bold; COLOR: #000000">varchar</SPAN><SPAN style="COLOR: #000000">(</SPAN><SPAN style="FONT-WEIGHT: bold; COLOR: #800000">50</SPAN><SPAN style="COLOR: #000000">)&nbsp;</SPAN><SPAN style="COLOR: #0000ff">NULL</SPAN><SPAN style="COLOR: #000000">,<BR>课号&nbsp;</SPAN><SPAN style="FONT-WEIGHT: bold; COLOR: #000000">varchar</SPAN><SPAN style="COLOR: #000000">(</SPAN><SPAN style="FONT-WEIGHT: bold; COLOR: #800000">50</SPAN><SPAN style="COLOR: #000000">)&nbsp;</SPAN><SPAN style="COLOR: #0000ff">NULL</SPAN><SPAN style="COLOR: #000000">,<BR>成绩&nbsp;</SPAN><SPAN style="FONT-WEIGHT: bold; COLOR: #000000">decimal</SPAN><SPAN style="COLOR: #000000">(</SPAN><SPAN style="FONT-WEIGHT: bold; COLOR: #800000">18</SPAN><SPAN style="COLOR: #000000">,&nbsp;</SPAN><SPAN style="FONT-WEIGHT: bold; COLOR: #800000">1</SPAN><SPAN style="COLOR: #000000">)&nbsp;</SPAN><SPAN style="COLOR: #0000ff">NULL</SPAN><SPAN style="COLOR: #000000"><BR>)</SPAN></DIV><BR>取每课号前两名的学号和成绩并按课号和成绩排序：<BR>
<DIV 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"><SPAN style="COLOR: #0000ff">select</SPAN><SPAN style="COLOR: #000000">&nbsp;课号,学号,成绩&nbsp;</SPAN><SPAN style="COLOR: #0000ff">from</SPAN><SPAN style="COLOR: #000000">&nbsp;成绩表&nbsp;</SPAN><SPAN style="COLOR: #0000ff">as</SPAN><SPAN style="COLOR: #000000">&nbsp;t1&nbsp;</SPAN><SPAN style="COLOR: #0000ff">where</SPAN><SPAN style="COLOR: #000000">&nbsp;(</SPAN><SPAN style="COLOR: #0000ff">select</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #ff00ff">count</SPAN><SPAN style="COLOR: #000000">(</SPAN><SPAN style="COLOR: #808080">*</SPAN><SPAN style="COLOR: #000000">)&nbsp;from成绩表&nbsp;</SPAN><SPAN style="COLOR: #0000ff">as</SPAN><SPAN style="COLOR: #000000">&nbsp;t2&nbsp;</SPAN><SPAN style="COLOR: #0000ff">where</SPAN><SPAN style="COLOR: #000000">&nbsp;t1.课号</SPAN><SPAN style="COLOR: #808080">=</SPAN><SPAN style="COLOR: #000000">t2.课号&nbsp;</SPAN><SPAN style="COLOR: #808080">and</SPAN><SPAN style="COLOR: #000000">&nbsp;t1.成绩</SPAN><SPAN style="COLOR: #808080">&gt;</SPAN><SPAN style="COLOR: #000000">t2.成绩)</SPAN><SPAN style="COLOR: #808080">&lt;</SPAN><SPAN style="FONT-WEIGHT: bold; COLOR: #800000">2</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">order</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">by</SPAN><SPAN style="COLOR: #000000">&nbsp;课号,成绩&nbsp;</SPAN><SPAN style="COLOR: #0000ff">desc</SPAN></DIV><img src ="http://www.cnblogs.com/drw/aggbug/709783.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/42957/" target="_blank">[新闻]金融风暴波及全球创业板 中国概念股难独善其身</a><br/><a href="http://www.cnblogs.com" target="_blank">博客园首页</a>&nbsp;<a href="http://space.cnblogs.com" target="_blank">社区</a>&nbsp;<a href="http://news.cnblogs.com" target="_blank">新闻频道</a>&nbsp;<a href="http://space.cnblogs.com/group.htm" target="_blank">小组</a>&nbsp;<a href="http://space.cnblogs.com/q" target="_blank">博问</a>&nbsp;<a href="http://wz.cnblogs.com/" target="_blank">网摘</a>&nbsp;<a href="http://space.cnblogs.com/ing" target="_blank">闪存</a>]]></description></item><item><title>sql server行转列问题终极解决</title><link>http://www.cnblogs.com/drw/archive/2007/04/11/sqlserver_row_to_column.html</link><dc:creator>七月(Lost)</dc:creator><author>七月(Lost)</author><pubDate>Wed, 11 Apr 2007 05:42:00 GMT</pubDate><guid>http://www.cnblogs.com/drw/archive/2007/04/11/sqlserver_row_to_column.html</guid><wfw:comment>http://www.cnblogs.com/drw/comments/708770.html</wfw:comment><comments>http://www.cnblogs.com/drw/archive/2007/04/11/sqlserver_row_to_column.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnblogs.com/drw/comments/commentRss/708770.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/drw/services/trackbacks/708770.html</trackback:ping><description><![CDATA[<DIV class=title><SPAN class=t18>网络文章，做个笔记<BR><BR>主要应用case语句来解决行转列的问题<BR>行转列问题主要分为两类<BR>1)简单的行转列问题:<BR>示例表:<BR>id&nbsp; sid&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; course&nbsp; result<BR>1&nbsp;&nbsp; 2005001 语文&nbsp;&nbsp;&nbsp;&nbsp; 80.0<BR>2&nbsp;&nbsp; 2005001 数学&nbsp;&nbsp;&nbsp;&nbsp; 90.0<BR>3&nbsp;&nbsp; 2005001 英语&nbsp;&nbsp;&nbsp;&nbsp; 80.0<BR>4&nbsp;&nbsp; 2005002 语文&nbsp;&nbsp;&nbsp;&nbsp; 56.0<BR>5&nbsp;&nbsp; 2005002 数学&nbsp;&nbsp;&nbsp;&nbsp; 69.0<BR>6&nbsp;&nbsp; 2005002 英语&nbsp;&nbsp;&nbsp;&nbsp; 89.0<BR>执行<BR>select sid,语文=isnull(sum(case course when '语文' then result end),0),<BR>&nbsp;&nbsp; 数学=isnull(sum(case course when '数学' then result end),0),<BR>&nbsp;&nbsp; 英语=isnull(sum(case course when '英语' then result end),0)<BR>&nbsp;&nbsp; from result <BR>&nbsp;&nbsp; group by sid<BR>&nbsp;&nbsp; order by sid<BR>得出结果<BR>sid&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 语文 数学 英语 <BR>2005001 80.0&nbsp; 90.0&nbsp; 80.0<BR>2005002 56.0&nbsp; 69.0&nbsp; 89.0<BR><BR>2)较为复杂的行转列<BR>表1:course<BR>id name<BR>1 语文<BR>2 数学<BR>3 英语<BR>表2:result<BR>id sid&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; course&nbsp; result<BR>1 2005001 语文&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 80.0<BR>2 2005001 数学&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 90.0<BR>3 2005001 英语&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 80.0<BR>4 2005002 语文&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 56.0<BR>5 2005002 数学&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 69.0<BR>6 2005002 英语&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 89.0<BR><BR>declare @sql varchar(8000)<BR>set @sql='select sid'<BR>select @sql=@sql+','+course.name+'=isnull(sum(case course when '''+course.name+''' then result end),0)'<BR>&nbsp;from course order by id <BR>set @sql=@sql+' from result group by sid order by sid'<BR>print @sql<BR>exec(@sql)</DIV>
<DIV class=content>
<P>得出结果<BR>sid&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 语文 数学 英语 <BR>2005001 80.0&nbsp; 90.0&nbsp; 80.0<BR>2005002 56.0&nbsp; 69.0&nbsp; 89.0<BR><BR>文章来源：<A href="http://www.chinahtml.com/databases/2/2007/mssql117046784310795.shtml" target=_blank>http://www.chinahtml.com/databases/2/2007/mssql117046784310795.shtml</A></P></SPAN></DIV><img src ="http://www.cnblogs.com/drw/aggbug/708770.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/42956/" target="_blank">[新闻]携程范敏：CEO从接发传真做起</a><br/><a href="http://www.cnblogs.com" target="_blank">博客园首页</a>&nbsp;<a href="http://space.cnblogs.com" target="_blank">社区</a>&nbsp;<a href="http://news.cnblogs.com" target="_blank">新闻频道</a>&nbsp;<a href="http://space.cnblogs.com/group.htm" target="_blank">小组</a>&nbsp;<a href="http://space.cnblogs.com/q" target="_blank">博问</a>&nbsp;<a href="http://wz.cnblogs.com/" target="_blank">网摘</a>&nbsp;<a href="http://space.cnblogs.com/ing" target="_blank">闪存</a>]]></description></item><item><title>使用C#验证台湾地区身份证号码</title><link>http://www.cnblogs.com/drw/archive/2007/04/06/Validator_Taiwan_IdCard.html</link><dc:creator>七月(Lost)</dc:creator><author>七月(Lost)</author><pubDate>Fri, 06 Apr 2007 11:33:00 GMT</pubDate><guid>http://www.cnblogs.com/drw/archive/2007/04/06/Validator_Taiwan_IdCard.html</guid><wfw:comment>http://www.cnblogs.com/drw/comments/703115.html</wfw:comment><comments>http://www.cnblogs.com/drw/archive/2007/04/06/Validator_Taiwan_IdCard.html#Feedback</comments><slash:comments>3</slash:comments><wfw:commentRss>http://www.cnblogs.com/drw/comments/commentRss/703115.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/drw/services/trackbacks/703115.html</trackback:ping><description><![CDATA[摘要: 使用C#驗證臺灣地區的身份證號碼。&nbsp;&nbsp;<a href='http://www.cnblogs.com/drw/archive/2007/04/06/Validator_Taiwan_IdCard.html'>阅读全文</a><img src ="http://www.cnblogs.com/drw/aggbug/703115.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/42955/" target="_blank">[新闻]2008年10月13日科技博客精选</a><br/><a href="http://www.cnblogs.com" target="_blank">博客园首页</a>&nbsp;<a href="http://space.cnblogs.com" target="_blank">社区</a>&nbsp;<a href="http://news.cnblogs.com" target="_blank">新闻频道</a>&nbsp;<a href="http://space.cnblogs.com/group.htm" target="_blank">小组</a>&nbsp;<a href="http://space.cnblogs.com/q" target="_blank">博问</a>&nbsp;<a href="http://wz.cnblogs.com/" target="_blank">网摘</a>&nbsp;<a href="http://space.cnblogs.com/ing" target="_blank">闪存</a>]]></description></item><item><title>web combo 的CSS实现方式</title><link>http://www.cnblogs.com/drw/archive/2006/03/21/354486.html</link><dc:creator>七月(Lost)</dc:creator><author>七月(Lost)</author><pubDate>Mon, 20 Mar 2006 17:48:00 GMT</pubDate><guid>http://www.cnblogs.com/drw/archive/2006/03/21/354486.html</guid><wfw:comment>http://www.cnblogs.com/drw/comments/354486.html</wfw:comment><comments>http://www.cnblogs.com/drw/archive/2006/03/21/354486.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.cnblogs.com/drw/comments/commentRss/354486.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/drw/services/trackbacks/354486.html</trackback:ping><description><![CDATA[<DIV 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"><IMG id=Code_Closed_Image onclick="this.style.display='none'; Code_Closed_Text.style.display='none'; Code_Open_Image.style.display='inline'; Code_Open_Text.style.display='inline';" height=16 src="http://www.cnblogs.com/images/OutliningIndicators/ContractedBlock.gif" width=11 align=top> <IMG id=Code_Open_Image style="DISPLAY: none" onclick="this.style.display='none'; Code_Open_Text.style.display='none'; Code_Closed_Image.style.display='inline'; Code_Closed_Text.style.display='inline';" height=16 src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedBlockStart.gif" width=11 align=top> <SPAN id=Code_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff">HTML代码</SPAN> <SPAN id=Code_Open_Text style="DISPLAY: none"><BR><!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top> <SPAN style="COLOR: #0000ff">&lt;</SPAN> <SPAN style="COLOR: #800000">span&nbsp;</SPAN> <SPAN style="COLOR: #ff0000">style</SPAN> <SPAN style="COLOR: #0000ff">="position:relative"</SPAN> <SPAN style="COLOR: #0000ff">&gt;</SPAN> <SPAN style="COLOR: #000000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</SPAN> <SPAN style="COLOR: #0000ff">&lt;</SPAN> <SPAN style="COLOR: #800000">SELECT&nbsp;</SPAN> <SPAN style="COLOR: #ff0000">style</SPAN> <SPAN style="COLOR: #0000ff">="POSITION:&nbsp;absolute;&nbsp;CLIP:&nbsp;rect(auto&nbsp;auto&nbsp;auto&nbsp;84px);"</SPAN> <SPAN style="COLOR: #ff0000">&nbsp;onchange</SPAN> <SPAN style="COLOR: #0000ff">="mCOMBO.value=this.options[this.selectedIndex].value;mCOMBO.focus();"</SPAN> <SPAN style="COLOR: #ff0000">&nbsp;name</SPAN> <SPAN style="COLOR: #0000ff">="mCOMBO_List"</SPAN> <SPAN style="COLOR: #ff0000">&nbsp;id</SPAN> <SPAN style="COLOR: #0000ff">="mCOMBO_List"</SPAN> <SPAN style="COLOR: #0000ff">&gt;</SPAN> <SPAN style="COLOR: #000000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</SPAN> <SPAN style="COLOR: #0000ff">&lt;</SPAN> <SPAN style="COLOR: #800000">option&nbsp;</SPAN> <SPAN style="COLOR: #ff0000">value</SPAN> <SPAN style="COLOR: #0000ff">="sina.com"</SPAN> <SPAN style="COLOR: #0000ff">&gt;</SPAN> <SPAN style="COLOR: #000000">sina.com</SPAN> <SPAN style="COLOR: #0000ff">&lt;/</SPAN> <SPAN style="COLOR: #800000">option</SPAN> <SPAN style="COLOR: #0000ff">&gt;</SPAN> <SPAN style="COLOR: #000000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</SPAN> <SPAN style="COLOR: #0000ff">&lt;</SPAN> <SPAN style="COLOR: #800000">option&nbsp;</SPAN> <SPAN style="COLOR: #ff0000">value</SPAN> <SPAN style="COLOR: #0000ff">="sohu.com"</SPAN> <SPAN style="COLOR: #0000ff">&gt;</SPAN> <SPAN style="COLOR: #000000">sohu.com</SPAN> <SPAN style="COLOR: #0000ff">&lt;/</SPAN> <SPAN style="COLOR: #800000">option</SPAN> <SPAN style="COLOR: #0000ff">&gt;</SPAN> <SPAN style="COLOR: #000000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</SPAN> <SPAN style="COLOR: #0000ff">&lt;</SPAN> <SPAN style="COLOR: #800000">option&nbsp;</SPAN> <SPAN style="COLOR: #ff0000">value</SPAN> <SPAN style="COLOR: #0000ff">="hotmail.com"</SPAN> <SPAN style="COLOR: #0000ff">&gt;</SPAN> <SPAN style="COLOR: #000000">hotmail.com</SPAN> <SPAN style="COLOR: #0000ff">&lt;/</SPAN> <SPAN style="COLOR: #800000">option</SPAN> <SPAN style="COLOR: #0000ff">&gt;</SPAN> <SPAN style="COLOR: #000000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</SPAN> <SPAN style="COLOR: #0000ff">&lt;</SPAN> <SPAN style="COLOR: #800000">option&nbsp;</SPAN> <SPAN style="COLOR: #ff0000">value</SPAN> <SPAN style="COLOR: #0000ff">="gmail.com"</SPAN> <SPAN style="COLOR: #0000ff">&gt;</SPAN> <SPAN style="COLOR: #000000">gmail.com</SPAN> <SPAN style="COLOR: #0000ff">&lt;/</SPAN> <SPAN style="COLOR: #800000">option</SPAN> <SPAN style="COLOR: #0000ff">&gt;</SPAN> <SPAN style="COLOR: #000000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</SPAN> <SPAN style="COLOR: #0000ff">&lt;</SPAN> <SPAN style="COLOR: #800000">option&nbsp;</SPAN> <SPAN style="COLOR: #ff0000">value</SPAN> <SPAN style="COLOR: #0000ff">=""</SPAN> <SPAN style="COLOR: #0000ff">&gt;</SPAN> <SPAN style="COLOR: #000000">自定义</SPAN> <SPAN style="COLOR: #0000ff">&lt;/</SPAN> <SPAN style="COLOR: #800000">option</SPAN> <SPAN style="COLOR: #0000ff">&gt;</SPAN> <SPAN style="COLOR: #000000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top> </SPAN><SPAN style="COLOR: #0000ff">&lt;/</SPAN> <SPAN style="COLOR: #800000">select</SPAN> <SPAN style="COLOR: #0000ff">&gt;</SPAN> <SPAN style="COLOR: #000000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top> </SPAN><SPAN style="COLOR: #0000ff">&lt;</SPAN> <SPAN style="COLOR: #800000">input&nbsp;</SPAN> <SPAN style="COLOR: #ff0000">id</SPAN> <SPAN style="COLOR: #0000ff">="mCOMBO"</SPAN> <SPAN style="COLOR: #ff0000">&nbsp;type</SPAN> <SPAN style="COLOR: #0000ff">="text"</SPAN> <SPAN style="COLOR: #ff0000">&nbsp;style</SPAN> <SPAN style="COLOR: #0000ff">="POSITION:&nbsp;absolute;CLIP:&nbsp;rect(auto&nbsp;84px&nbsp;auto&nbsp;auto);width:86px;"</SPAN> <SPAN style="COLOR: #ff0000">&nbsp;</SPAN> <SPAN style="COLOR: #0000ff">/&gt;</SPAN> <SPAN style="COLOR: #000000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top> </SPAN><SPAN style="COLOR: #0000ff">&lt;/</SPAN> <SPAN style="COLOR: #800000">span</SPAN> <SPAN style="COLOR: #0000ff">&gt;</SPAN> </SPAN></DIV><BR>效果如下： <SPAN style="POSITION: relative"><SELECT id=mCOMBO_List style="CLIP: rect(auto auto auto 86px); POSITION: absolute" onchange=mCOMBO.value=this.options[this.selectedIndex].value;mCOMBO.focus(); name=mCOMBO_List><OPTION value=sina.com selected>sina.com</OPTION><OPTION value=sohu.com>sohu.com</OPTION><OPTION value=hotmail.com>hotmail.com</OPTION><OPTION value=gmail.com>gmail.com</OPTION><OPTION value="">自定义</OPTION></SELECT><INPUT id=mCOMBO style="WIDTH: 86px; CLIP: rect(auto 80px auto auto); POSITION: absolute"></SPAN><img src ="http://www.cnblogs.com/drw/aggbug/354486.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/42954/" target="_blank">[新闻]Google Android手机大受欢迎,已经订出150万台</a><br/><a href="http://www.cnblogs.com" target="_blank">博客园首页</a>&nbsp;<a href="http://space.cnblogs.com" target="_blank">社区</a>&nbsp;<a href="http://news.cnblogs.com" target="_blank">新闻频道</a>&nbsp;<a href="http://space.cnblogs.com/group.htm" target="_blank">小组</a>&nbsp;<a href="http://space.cnblogs.com/q" target="_blank">博问</a>&nbsp;<a href="http://wz.cnblogs.com/" target="_blank">网摘</a>&nbsp;<a href="http://space.cnblogs.com/ing" target="_blank">闪存</a>]]></description></item><item><title>微软为顶级域名用户提供了免费邮局了。</title><link>http://www.cnblogs.com/drw/archive/2006/03/01/340635.html</link><dc:creator>七月(Lost)</dc:creator><author>七月(Lost)</author><pubDate>Wed, 01 Mar 2006 12:38:00 GMT</pubDate><guid>http://www.cnblogs.com/drw/archive/2006/03/01/340635.html</guid><wfw:comment>http://www.cnblogs.com/drw/comments/340635.html</wfw:comment><comments>http://www.cnblogs.com/drw/archive/2006/03/01/340635.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnblogs.com/drw/comments/commentRss/340635.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/drw/services/trackbacks/340635.html</trackback:ping><description><![CDATA[<P><FONT face="Courier New"><FONT size=2>微软开始为顶级域名用户提供</FONT><A href="https://domains.live.com/"><STRONG><FONT face=Garamond>免费的邮局</FONT></STRONG></A><FONT size=2>。<BR>支持创建60个邮箱账号。<BR></FONT></FONT><FONT size=2><FONT face="Courier New"><BR></FONT></FONT>有问题可以联系我MSN:bigway@5dz.net<BR></P>
<FIELDSET><LEGEND>Bring Your Own Domain</LEGEND>
<DIV align=left><BR><FONT face="Courier New"><FONT size=2><SPAN class=blueboldtext>Already own your own Internet domain name?</SPAN><BR><BR>Have us host e-mail and IM for you in a domain you already own.<BR><BR></FONT></FONT>
<LI><FONT face="Courier New" size=2>Create up to 60 e-mail accounts within your domain </FONT>
<LI><FONT face="Courier New" size=2>Get a 250 MB inbox for each account* </FONT>
<LI><FONT face="Courier New" size=2>Check your e-mail from any Web-enabled PC </FONT>
<LI><FONT face="Courier New" size=2>Junk e-mail filter protection using Microsoft SmartScreen technology </FONT>
<LI><FONT face="Courier New" size=2>Virus scanning and cleaning of e-mail </FONT>
<LI><FONT face="Courier New" size=2>Seamless access with MSN Messenger, MSN Spaces, etc.</FONT> <BR><BR><FONT face="Courier New" size=2>*250MB inbox available only in the 50 United States, District of Columbia, and Puerto Rico. Eligible Hotmail users will first receive 25MB at sign-up. Please allow at least 30 days for activation of your 250MB storage to verify your e-mail account and help prevent abuse. Microsoft Corporation reserves the right to provide 250MB inbox to free Hotmail accounts at its discretion. <BR><BR>Click </FONT><A id=BringDomain href="https://domains.live.com/Signup/"><FONT face="Courier New" color=#0000ff size=4><STRONG>here</STRONG></FONT></A><FONT face="Courier New" size=2> to setup e-mail for an existing domain today!</FONT> </LI></DIV></FIELDSET> 
<P></P><img src ="http://www.cnblogs.com/drw/aggbug/340635.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/42953/" target="_blank">[新闻]13个大文件邮件传送服务</a><br/><a href="http://www.cnblogs.com" target="_blank">博客园首页</a>&nbsp;<a href="http://space.cnblogs.com" target="_blank">社区</a>&nbsp;<a href="http://news.cnblogs.com" target="_blank">新闻频道</a>&nbsp;<a href="http://space.cnblogs.com/group.htm" target="_blank">小组</a>&nbsp;<a href="http://space.cnblogs.com/q" target="_blank">博问</a>&nbsp;<a href="http://wz.cnblogs.com/" target="_blank">网摘</a>&nbsp;<a href="http://space.cnblogs.com/ing" target="_blank">闪存</a>]]></description></item><item><title>整理修改网上流传的C#农历类</title><link>http://www.cnblogs.com/drw/archive/2006/02/26/338305.html</link><dc:creator>七月(Lost)</dc:creator><author>七月(Lost)</author><pubDate>Sun, 26 Feb 2006 14:18:00 GMT</pubDate><guid>http://www.cnblogs.com/drw/archive/2006/02/26/338305.html</guid><wfw:comment>http://www.cnblogs.com/drw/comments/338305.html</wfw:comment><comments>http://www.cnblogs.com/drw/archive/2006/02/26/338305.html#Feedback</comments><slash:comments>5</slash:comments><wfw:commentRss>http://www.cnblogs.com/drw/comments/commentRss/338305.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/drw/services/trackbacks/338305.html</trackback:ping><description><![CDATA[项目用到，所以做了下修改，全由属性输出农历结果，使用方便多了。。<BR><BR>最简单可以这样:Console.Write((new LunarDate(DateTime.Now)).ToString()); <BR><BR><A href="http://www.5dz.net/TestWebForm.aspx" target=_blank>演示<BR></A><BR>代码如下<BR><TEXTAREA style="WIDTH: 100%; HEIGHT: 150px">/*
 * 农历类，by aiyao at www.5dz.net
*/

using System;

namespace YyAy.Web.WebClass
{

	#region 使用范例
//	可将这段代码取消注释运行可以得到示例结果。。
//	public class MyTest
//	{
//		//方法一，用LunarDate类
//		public string Mothed1()
//		{
//			DateTime _d = DateTime.Now;
//			LunarDate ld = new LunarDate(_d) ;
//			string result = "";
//			result += "干支年："+ ld.LunarYear +"\r\n";
//			result += "生肖："+ ld.Animal +"\r\n";
//			result += "月："+ ld.LunarMonth +"\r\n";
//			result += "日："+ ld.LunarDay +"\r\n";
//			result += "节气："+ ld.SolarTerm +"\r\n";
//			result += "数字农历年："+ ld.Year +"月"+ ld.Month +"日"+ ld.Day +"\r\n";
//            return result;
//		}
//
//		//方法二，用LunarDateClass类
//		public string Mothed2()
//		{
//			DateTime _d = DateTime.Now;
//			LunarDateClass ldc = new LunarDateClass(_d) ;
//			string result = "";
//			result += "干支年："+ ldc.LunarYear +"\r\n";
//			result += "生肖："+ ldc.Animal +"\r\n";
//			result += "月："+ ldc.LunarMonth +"\r\n";
//			result += "日："+ ldc.LunarDay +"\r\n";
//			result += "节气："+ ldc.SolarTerm +"\r\n";
//			//ldc.LunarDate 返回 LunarDate对象。。
//			result += "数字农历年："+ ldc.LunarDate.Year +"月"+ ldc.LunarDate.Month +"日"+ ldc.LunarDate.Day +"\r\n";
//			return result;
//		}
//	}
	#endregion

	#region LunarDate

	public class LunarDateClass
	{
		private const ushort START_YEAR = 1901;
		private const ushort END_YEAR = 2050;
		private DateTime m_Date = DateTime.MinValue;
		private LunarDate m_LunarDate = null;
		private string m_LunarYear = "", m_LunarMonth = "", m_LunarDay = "";
		private string m_Animal = "", m_Constellation = "", m_SolarTerm = "";

		/// &lt;summary&gt;始化农历类。&lt;/summary&gt;
		public LunarDateClass()
		{
			this.Date = DateTime.Today;
		}


		/// &lt;summary&gt;以公历日期初始化农历类。&lt;/summary&gt;
		/// &lt;param name="dt"&gt;初始化公历日期。要查询的日期。&lt;/param&gt;
		public LunarDateClass(DateTime dt)
		{
			this.Date = dt.Date;
		}


		/// &lt;summary&gt;初始化公历日期。要查询的日期。&lt;/summary&gt;
		public DateTime Date
		{
			get { return m_Date; }
			set
			{
				this.m_Animal = "";
				this.m_Constellation = "";
				this.m_LunarDate = null;
				this.m_LunarDay = "";
				this.m_LunarMonth = "";
				this.m_LunarYear = "";
				this.m_SolarTerm = "";
				m_Date = value;
			}
		}

		#region LunarDateClassData

		/// &lt;summary&gt;星座名称。&lt;/summary&gt;
		private string[] ConstellationName =
			{
				"白羊座", "金牛座", "双子座", "巨蟹座", "狮子座", "处女座",
				"天秤座", "天蝎座", "射手座", "摩羯座", "水瓶座", "双鱼座"
			};

		/// &lt;summary&gt;节气名称。&lt;/summary&gt;
		private string[] LunarHolDayName =
			{
				"小寒", "大寒", "立春", "雨水", "惊蛰", "春分", "清明", "谷雨",
				"立夏", "小满", "芒种", "夏至", "小暑", "大暑", "立秋", "处暑",
				"白露", "秋分", "寒露", "霜降", "立冬", "小雪", "大雪", "冬至"
			};

		/// &lt;summary&gt;
		/// 数组gLunarDay存入阴历1901年到2050年每年中的月天数信息，
		/// 阴历每月只能是29或30天，一年用12（或13）个二进制位表示，
		/// 对应位为1表30天，否则为29天.
		/// 测试数据只有1901.1.1 --2050.12.31 
		/// &lt;/summary&gt;
		private int[] gLunarMonthDay = {
	0x4ae0, 0xa570, 0x5268, 0xd260, 0xd950, 0x6aa8, 0x56a0, 0x9ad0, 0x4ae8, 0x4ae0, //1910 
	0xa4d8, 0xa4d0, 0xd250, 0xd548, 0xb550, 0x56a0, 0x96d0, 0x95b0, 0x49b8, 0x49b0, //1920 
	0xa4b0, 0xb258, 0x6a50, 0x6d40, 0xada8, 0x2b60, 0x9570, 0x4978, 0x4970, 0x64b0, //1930 
	0xd4a0, 0xea50, 0x6d48, 0x5ad0, 0x2b60, 0x9370, 0x92e0, 0xc968, 0xc950, 0xd4a0, //1940 
	0xda50, 0xb550, 0x56a0, 0xaad8, 0x25d0, 0x92d0, 0xc958, 0xa950, 0xb4a8, 0x6ca0, //1950 
	0xb550, 0x55a8, 0x4da0, 0xa5b0, 0x52b8, 0x52b0, 0xa950, 0xe950, 0x6aa0, 0xad50, //1960 
	0xab50, 0x4b60, 0xa570, 0xa570, 0x5260, 0xe930, 0xd950, 0x5aa8, 0x56a0, 0x96d0, //1970 
	0x4ae8, 0x4ad0, 0xa4d0, 0xd268, 0xd250, 0xd528, 0xb540, 0xb6a0, 0x96d0, 0x95b0, //1980 
	0x49b0, 0xa4b8, 0xa4b0, 0xb258, 0x6a50, 0x6d40, 0xada0, 0xab60, 0x9370, 0x4978, //1990 
	0x4970, 0x64b0, 0x6a50, 0xea50, 0x6b28, 0x5ac0, 0xab60, 0x9368, 0x92e0, 0xc960, //2000 
	0xd4a8, 0xd4a0, 0xda50, 0x5aa8, 0x56a0, 0xaad8, 0x25d0, 0x92d0, 0xc958, 0xa950, //2010 
	0xb4a0, 0xb550, 0xb550, 0x55a8, 0x4ba0, 0xa5b0, 0x52b8, 0x52b0, 0xa930, 0x74a8, //2020 
	0x6aa0, 0xad50, 0x4da8, 0x4b60, 0x9570, 0xa4e0, 0xd260, 0xe930, 0xd530, 0x5aa0, //2030 
	0x6b50, 0x96d0, 0x4ae8, 0x4ad0, 0xa4d0, 0xd258, 0xd250, 0xd520, 0xdaa0, 0xb5a0, //2040 
	0x56d0, 0x4ad8, 0x49b0, 0xa4b8, 0xa4b0, 0xaa50, 0xb528, 0x6d20, 0xada0, 0x55b0 //2050 
									   };

		/// &lt;summary&gt;数组gLanarMonth存放阴历1901年到2050年闰月的月份，如没有则为0，每字节存两年&lt;/summary&gt;
		private byte[] gLunarMonth = {
	0x00, 0x50, 0x04, 0x00, 0x20, //1910
	0x60, 0x05, 0x00, 0x20, 0x70, //1920 
	0x05, 0x00, 0x40, 0x02, 0x06, //1930
	0x00, 0x50, 0x03, 0x07, 0x00, //1940 
	0x60, 0x04, 0x00, 0x20, 0x70, //1950 
	0x05, 0x00, 0x30, 0x80, 0x06, //1960 
	0x00, 0x40, 0x03, 0x07, 0x00, //1970 
	0x50, 0x04, 0x08, 0x00, 0x60, //1980 
	0x04, 0x0a, 0x00, 0x60, 0x05, //1990 
	0x00, 0x30, 0x80, 0x05, 0x00, //2000 
	0x40, 0x02, 0x07, 0x00, 0x50, //2010 
	0x04, 0x09, 0x00, 0x60, 0x04, //2020 
	0x00, 0x20, 0x60, 0x05, 0x00, //2030 
	0x30, 0xb0, 0x06, 0x00, 0x50, //2040 
	0x02, 0x07, 0x00, 0x50, 0x03 //2050 
									 };


		//数组gLanarHoliDay存放每年的二十四节气对应的阳历日期 

		//每年的二十四节气对应的阳历日期几乎固定，平均分布于十二个月中
		// 1月 2月 3月 4月 5月 6月
		//小寒 大寒 立春 雨水 惊蛰 春分 清明 谷雨 立夏 小满 芒种 夏至 
		// 7月 8月 9月 10月 11月 12月 
		//小暑 大暑 立秋 处暑 白露 秋分 寒露 霜降 立冬 小雪 大雪 冬至 
		//********************************************************************************* 
		// 节气无任何确定规律,所以只好存表,要节省空间,所以.... 
		//**********************************************************************************} 
		//数据格式说明: 
		//如1901年的节气为 
		// 1月 2月 3月 4月 5月 6月 7月 8月 9月 10月 11月 12月 
		// 6, 21, 4, 19, 6, 21, 5, 21, 6,22, 6,22, 8, 23, 8, 24, 8, 24, 8, 24, 8, 23, 8, 22 
		// 9, 6, 11,4, 9, 6, 10,6, 9,7, 9,7, 7, 8, 7, 9, 7, 9, 7, 9, 7, 8, 7, 15 
		//上面第一行数据为每月节气对应日期,15减去每月第一个节气,每月第二个节气减去15得第二行 
		// 这样每月两个节气对应数据都小于16,每月用一个字节存放,高位存放第一个节气数据,低位存放 
		//第二个节气的数据,可得下表
		private byte[] gLunarHolDay = {
	 0x96, 0xB4, 0x96, 0xA6, 0x97, 0x97, 0x78, 0x79, 0x79, 0x69, 0x78, 0x77, //1901 
	 0x96, 0xA4, 0x96, 0x96, 0x97, 0x87, 0x79, 0x79, 0x79, 0x69, 0x78, 0x78, //1902 
	 0x96, 0xA5, 0x87, 0x96, 0x87, 0x87, 0x79, 0x69, 0x69, 0x69, 0x78, 0x78, //1903 
	 0x86, 0xA5, 0x96, 0xA5, 0x96, 0x97, 0x88, 0x78, 0x78, 0x79, 0x78, 0x87, //1904 
	 0x96, 0xB4, 0x96, 0xA6, 0x97, 0x97, 0x78, 0x79, 0x79, 0x69, 0x78, 0x77, //1905 
	 0x96, 0xA4, 0x96, 0x96, 0x97, 0x97, 0x79, 0x79, 0x79, 0x69, 0x78, 0x78, //1906 
	 0x96, 0xA5, 0x87, 0x96, 0x87, 0x87, 0x79, 0x69, 0x69, 0x69, 0x78, 0x78, //1907 
	 0x86, 0xA5, 0x96, 0xA5, 0x96, 0x97, 0x88, 0x78, 0x78, 0x69, 0x78, 0x87, //1908 
	 0x96, 0xB4, 0x96, 0xA6, 0x97, 0x97, 0x78, 0x79, 0x79, 0x69, 0x78, 0x77, //1909 
	 0x96, 0xA4, 0x96, 0x96, 0x97, 0x97, 0x79, 0x79, 0x79, 0x69, 0x78, 0x78, //1910 
	 0x96, 0xA5, 0x87, 0x96, 0x87, 0x87, 0x79, 0x69, 0x69, 0x69, 0x78, 0x78, //1911 
	 0x86, 0xA5, 0x96, 0xA5, 0x96, 0x97, 0x88, 0x78, 0x78, 0x69, 0x78, 0x87, //1912 
	 0x95, 0xB4, 0x96, 0xA6, 0x97, 0x97, 0x78, 0x79, 0x79, 0x69, 0x78, 0x77, //1913 
	 0x96, 0xB4, 0x96, 0xA6, 0x97, 0x97, 0x79, 0x79, 0x79, 0x69, 0x78, 0x78, //1914 
	 0x96, 0xA5, 0x97, 0x96, 0x97, 0x87, 0x79, 0x79, 0x69, 0x69, 0x78, 0x78, //1915 
	 0x96, 0xA5, 0x96, 0xA5, 0x96, 0x97, 0x88, 0x78, 0x78, 0x79, 0x77, 0x87, //1916 
	 0x95, 0xB4, 0x96, 0xA6, 0x96, 0x97, 0x78, 0x79, 0x78, 0x69, 0x78, 0x87, //1917 
	 0x96, 0xB4, 0x96, 0xA6, 0x97, 0x97, 0x79, 0x79, 0x79, 0x69, 0x78, 0x77, //1918 
	 0x96, 0xA5, 0x97, 0x96, 0x97, 0x87, 0x79, 0x79, 0x69, 0x69, 0x78, 0x78, //1919 
	 0x96, 0xA5, 0x96, 0xA5, 0x96, 0x97, 0x88, 0x78, 0x78, 0x79, 0x77, 0x87, //1920 
	 0x95, 0xB4, 0x96, 0xA5, 0x96, 0x97, 0x78, 0x79, 0x78, 0x69, 0x78, 0x87, //1921 
	 0x96, 0xB4, 0x96, 0xA6, 0x97, 0x97, 0x79, 0x79, 0x79, 0x69, 0x78, 0x77, //1922 
	 0x96, 0xA4, 0x96, 0x96, 0x97, 0x87, 0x79, 0x79, 0x69, 0x69, 0x78, 0x78, //1923 
	 0x96, 0xA5, 0x96, 0xA5, 0x96, 0x97, 0x88, 0x78, 0x78, 0x79, 0x77, 0x87, //1924 
	 0x95, 0xB4, 0x96, 0xA5, 0x96, 0x97, 0x78, 0x79, 0x78, 0x69, 0x78, 0x87, //1925 
	 0x96, 0xB4, 0x96, 0xA6, 0x97, 0x97, 0x78, 0x79, 0x79, 0x69, 0x78, 0x77, //1926 
	 0x96, 0xA4, 0x96, 0x96, 0x97, 0x87, 0x79, 0x79, 0x79, 0x69, 0x78, 0x78, //1927 
	 0x96, 0xA5, 0x96, 0xA5, 0x96, 0x96, 0x88, 0x78, 0x78, 0x78, 0x87, 0x87, //1928 
	 0x95, 0xB4, 0x96, 0xA5, 0x96, 0x97, 0x88, 0x78, 0x78, 0x79, 0x77, 0x87, //1929 
	 0x96, 0xB4, 0x96, 0xA6, 0x97, 0x97, 0x78, 0x79, 0x79, 0x69, 0x78, 0x77, //1930 
	 0x96, 0xA4, 0x96, 0x96, 0x97, 0x87, 0x79, 0x79, 0x79, 0x69, 0x78, 0x78, //1931 
	 0x96, 0xA5, 0x96, 0xA5, 0x96, 0x96, 0x88, 0x78, 0x78, 0x78, 0x87, 0x87, //1932 
	 0x95, 0xB4, 0x96, 0xA5, 0x96, 0x97, 0x88, 0x78, 0x78, 0x69, 0x78, 0x87, //1933 
	 0x96, 0xB4, 0x96, 0xA6, 0x97, 0x97, 0x78, 0x79, 0x79, 0x69, 0x78, 0x77, //1934 
	 0x96, 0xA4, 0x96, 0x96, 0x97, 0x97, 0x79, 0x79, 0x79, 0x69, 0x78, 0x78, //1935 
	 0x96, 0xA5, 0x96, 0xA5, 0x96, 0x96, 0x88, 0x78, 0x78, 0x78, 0x87, 0x87, //1936 
	 0x95, 0xB4, 0x96, 0xA5, 0x96, 0x97, 0x88, 0x78, 0x78, 0x69, 0x78, 0x87, //1937 
	 0x96, 0xB4, 0x96, 0xA6, 0x97, 0x97, 0x78, 0x79, 0x79, 0x69, 0x78, 0x77, //1938 
	 0x96, 0xA4, 0x96, 0x96, 0x97, 0x97, 0x79, 0x79, 0x79, 0x69, 0x78, 0x78, //1939 
	 0x96, 0xA5, 0x96, 0xA5, 0x96, 0x96, 0x88, 0x78, 0x78, 0x78, 0x87, 0x87, //1940 
	 0x95, 0xB4, 0x96, 0xA5, 0x96, 0x97, 0x88, 0x78, 0x78, 0x69, 0x78, 0x87, //1941 
	 0x96, 0xB4, 0x96, 0xA6, 0x97, 0x97, 0x78, 0x79, 0x79, 0x69, 0x78, 0x77, //1942 
	 0x96, 0xA4, 0x96, 0x96, 0x97, 0x97, 0x79, 0x79, 0x79, 0x69, 0x78, 0x78, //1943 
	 0x96, 0xA5, 0x96, 0xA5, 0xA6, 0x96, 0x88, 0x78, 0x78, 0x78, 0x87, 0x87, //1944 
	 0x95, 0xB4, 0x96, 0xA5, 0x96, 0x97, 0x88, 0x78, 0x78, 0x79, 0x77, 0x87, //1945 
	 0x95, 0xB4, 0x96, 0xA6, 0x97, 0x97, 0x78, 0x79, 0x78, 0x69, 0x78, 0x77, //1946 
	 0x96, 0xB4, 0x96, 0xA6, 0x97, 0x97, 0x79, 0x79, 0x79, 0x69, 0x78, 0x78, //1947 
	 0x96, 0xA5, 0xA6, 0xA5, 0xA6, 0x96, 0x88, 0x88, 0x78, 0x78, 0x87, 0x87, //1948 
	 0xA5, 0xB4, 0x96, 0xA5, 0x96, 0x97, 0x88, 0x79, 0x78, 0x79, 0x77, 0x87, //1949 
	 0x95, 0xB4, 0x96, 0xA5, 0x96, 0x97, 0x78, 0x79, 0x78, 0x69, 0x78, 0x77, //1950 
	 0x96, 0xB4, 0x96, 0xA6, 0x97, 0x97, 0x79, 0x79, 0x79, 0x69, 0x78, 0x78, //1951 
	 0x96, 0xA5, 0xA6, 0xA5, 0xA6, 0x96, 0x88, 0x88, 0x78, 0x78, 0x87, 0x87, //1952 
	 0xA5, 0xB4, 0x96, 0xA5, 0x96, 0x97, 0x88, 0x78, 0x78, 0x79, 0x77, 0x87, //1953 
	 0x95, 0xB4, 0x96, 0xA5, 0x96, 0x97, 0x78, 0x79, 0x78, 0x68, 0x78, 0x87, //1954 
	 0x96, 0xB4, 0x96, 0xA6, 0x97, 0x97, 0x78, 0x79, 0x79, 0x69, 0x78, 0x77, //1955 
	 0x96, 0xA5, 0xA5, 0xA5, 0xA6, 0x96, 0x88, 0x88, 0x78, 0x78, 0x87, 0x87, //1956 
	 0xA5, 0xB4, 0x96, 0xA5, 0x96, 0x97, 0x88, 0x78, 0x78, 0x79, 0x77, 0x87, //1957 
	 0x95, 0xB4, 0x96, 0xA5, 0x96, 0x97, 0x88, 0x78, 0x78, 0x69, 0x78, 0x87, //1958 
	 0x96, 0xB4, 0x96, 0xA6, 0x97, 0x97, 0x78, 0x79, 0x79, 0x69, 0x78, 0x77, //1959 
	 0x96, 0xA4, 0xA5, 0xA5, 0xA6, 0x96, 0x88, 0x88, 0x88, 0x78, 0x87, 0x87, //1960 
	 0xA5, 0xB4, 0x96, 0xA5, 0x96, 0x96, 0x88, 0x78, 0x78, 0x78, 0x87, 0x87, //1961 
	 0x96, 0xB4, 0x96, 0xA5, 0x96, 0x97, 0x88, 0x78, 0x78, 0x69, 0x78, 0x87, //1962 
	 0x96, 0xB4, 0x96, 0xA6, 0x97, 0x97, 0x78, 0x79, 0x79, 0x69, 0x78, 0x77, //1963 
	 0x96, 0xA4, 0xA5, 0xA5, 0xA6, 0x96, 0x88, 0x88, 0x88, 0x78, 0x87, 0x87, //1964 
	 0xA5, 0xB4, 0x96, 0xA5, 0x96, 0x96, 0x88, 0x78, 0x78, 0x78, 0x87, 0x87, //1965 
	 0x95, 0xB4, 0x96, 0xA5, 0x96, 0x97, 0x88, 0x78, 0x78, 0x69, 0x78, 0x87, //1966 
	 0x96, 0xB4, 0x96, 0xA6, 0x97, 0x97, 0x78, 0x79, 0x79, 0x69, 0x78, 0x77, //1967 
	 0x96, 0xA4, 0xA5, 0xA5, 0xA6, 0xA6, 0x88, 0x88, 0x88, 0x78, 0x87, 0x87, //1968 
	 0xA5, 0xB4, 0x96, 0xA5, 0x96, 0x96, 0x88, 0x78, 0x78, 0x78, 0x87, 0x87, //1969 
	 0x95, 0xB4, 0x96, 0xA5, 0x96, 0x97, 0x88, 0x78, 0x78, 0x69, 0x78, 0x87, //1970 
	 0x96, 0xB4, 0x96, 0xA6, 0x97, 0x97, 0x78, 0x79, 0x79, 0x69, 0x78, 0x77, //1971 
	 0x96, 0xA4, 0xA5, 0xA5, 0xA6, 0xA6, 0x88, 0x88, 0x88, 0x78, 0x87, 0x87, //1972 
	 0xA5, 0xB5, 0x96, 0xA5, 0xA6, 0x96, 0x88, 0x78, 0x78, 0x78, 0x87, 0x87, //1973 
	 0x95, 0xB4, 0x96, 0xA5, 0x96, 0x97, 0x88, 0x78, 0x78, 0x69, 0x78, 0x87, //1974 
	 0x96, 0xB4, 0x96, 0xA6, 0x97, 0x97, 0x78, 0x79, 0x78, 0x69, 0x78, 0x77, //1975 
	 0x96, 0xA4, 0xA5, 0xB5, 0xA6, 0xA6, 0x88, 0x89, 0x88, 0x78, 0x87, 0x87, //1976 
	 0xA5, 0xB4, 0x96, 0xA5, 0x96, 0x96, 0x88, 0x88, 0x78, 0x78, 0x87, 0x87, //1977 
	 0x95, 0xB4, 0x96, 0xA5, 0x96, 0x97, 0x88, 0x78, 0x78, 0x79, 0x78, 0x87, //1978 
	 0x96, 0xB4, 0x96, 0xA6, 0x96, 0x97, 0x78, 0x79, 0x78, 0x69, 0x78, 0x77, //1979 
	 0x96, 0xA4, 0xA5, 0xB5, 0xA6, 0xA6, 0x88, 0x88, 0x88, 0x78, 0x87, 0x87, //1980 
	 0xA5, 0xB4, 0x96, 0xA5, 0xA6, 0x96, 0x88, 0x88, 0x78, 0x78, 0x77, 0x87, //1981 
	 0x95, 0xB4, 0x96, 0xA5, 0x96, 0x97, 0x88, 0x78, 0x78, 0x79, 0x77, 0x87, //1982 
	 0x95, 0xB4, 0x96, 0xA5, 0x96, 0x97, 0x78, 0x79, 0x78, 0x69, 0x78, 0x77, //1983 
	 0x96, 0xB4, 0xA5, 0xB5, 0xA6, 0xA6, 0x87, 0x88, 0x88, 0x78, 0x87, 0x87, //1984 
	 0xA5, 0xB4, 0xA6, 0xA5, 0xA6, 0x96, 0x88, 0x88, 0x78, 0x78, 0x87, 0x87, //1985 
	 0xA5, 0xB4, 0x96, 0xA5, 0x96, 0x97, 0x88, 0x78, 0x78, 0x79, 0x77, 0x87, //1986 
	 0x95, 0xB4, 0x96, 0xA5, 0x96, 0x97, 0x88, 0x79, 0x78, 0x69, 0x78, 0x87, //1987 
	 0x96, 0xB4, 0xA5, 0xB5, 0xA6, 0xA6, 0x87, 0x88, 0x88, 0x78, 0x87, 0x86, //1988 
	 0xA5, 0xB4, 0xA5, 0xA5, 0xA6, 0x96, 0x88, 0x88, 0x88, 0x78, 0x87, 0x87, //1989 
	 0xA5, 0xB4, 0x96, 0xA5, 0x96, 0x96, 0x88, 0x78, 0x78, 0x79, 0x77, 0x87, //1990 
	 0x95, 0xB4, 0x96, 0xA5, 0x86, 0x97, 0x88, 0x78, 0x78, 0x69, 0x78, 0x87, //1991 
	 0x96, 0xB4, 0xA5, 0xB5, 0xA6, 0xA6, 0x87, 0x88, 0x88, 0x78, 0x87, 0x86, //1992 
	 0xA5, 0xB3, 0xA5, 0xA5, 0xA6, 0x96, 0x88, 0x88, 0x88, 0x78, 0x87, 0x87, //1993 
	 0xA5, 0xB4, 0x96, 0xA5, 0x96, 0x96, 0x88, 0x78, 0x78, 0x78, 0x87, 0x87, //1994 
	 0x95, 0xB4, 0x96, 0xA5, 0x96, 0x97, 0x88, 0x76, 0x78, 0x69, 0x78, 0x87, //1995 
	 0x96, 0xB4, 0xA5, 0xB5, 0xA6, 0xA6, 0x87, 0x88, 0x88, 0x78, 0x87, 0x86, //1996 
	 0xA5, 0xB3, 0xA5, 0xA5, 0xA6, 0xA6, 0x88, 0x88, 0x88, 0x78, 0x87, 0x87, //1997 
	 0xA5, 0xB4, 0x96, 0xA5, 0x96, 0x96, 0x88, 0x78, 0x78, 0x78, 0x87, 0x87, //1998 
	 0x95, 0xB4, 0x96, 0xA5, 0x96, 0x97, 0x88, 0x78, 0x78, 0x69, 0x78, 0x87, //1999 
	 0x96, 0xB4, 0xA5, 0xB5, 0xA6, 0xA6, 0x87, 0x88, 0x88, 0x78, 0x87, 0x86, //2000 
	 0xA5, 0xB3, 0xA5, 0xA5, 0xA6, 0xA6, 0x88, 0x88, 0x88, 0x78, 0x87, 0x87, //2001 
	 0xA5, 0xB4, 0x96, 0xA5, 0x96, 0x96, 0x88, 0x78, 0x78, 0x78, 0x87, 0x87, //2002 
	 0x95, 0xB4, 0x96, 0xA5, 0x96, 0x97, 0x88, 0x78, 0x78, 0x69, 0x78, 0x87, //2003 
	 0x96, 0xB4, 0xA5, 0xB5, 0xA6, 0xA6, 0x87, 0x88, 0x88, 0x78, 0x87, 0x86, //2004 
	 0xA5, 0xB3, 0xA5, 0xA5, 0xA6, 0xA6, 0x88, 0x88, 0x88, 0x78, 0x87, 0x87, //2005 
	 0xA5, 0xB4, 0x96, 0xA5, 0xA6, 0x96, 0x88, 0x88, 0x78, 0x78, 0x87, 0x87, //2006 
	 0x95, 0xB4, 0x96, 0xA5, 0x96, 0x97, 0x88, 0x78, 0x78, 0x69, 0x78, 0x87, //2007 
	 0x96, 0xB4, 0xA5, 0xB5, 0xA6, 0xA6, 0x87, 0x88, 0x87, 0x78, 0x87, 0x86, //2008 
	 0xA5, 0xB3, 0xA5, 0xB5, 0xA6, 0xA6, 0x88, 0x88, 0x88, 0x78, 0x87, 0x87, //2009 
	 0xA5, 0xB4, 0x96, 0xA5, 0xA6, 0x96, 0x88, 0x88, 0x78, 0x78, 0x87, 0x87, //2010 
	 0x95, 0xB4, 0x96, 0xA5, 0x96, 0x97, 0x88, 0x78, 0x78, 0x79, 0x78, 0x87, //2011 
	 0x96, 0xB4, 0xA5, 0xB5, 0xA5, 0xA6, 0x87, 0x88, 0x87, 0x78, 0x87, 0x86, //2012 
	 0xA5, 0xB3, 0xA5, 0xB5, 0xA6, 0xA6, 0x87, 0x88, 0x88, 0x78, 0x87, 0x87, //2013 
	 0xA5, 0xB4, 0x96, 0xA5, 0xA6, 0x96, 0x88, 0x88, 0x78, 0x78, 0x87, 0x87, //2014 
	 0x95, 0xB4, 0x96, 0xA5, 0x96, 0x97, 0x88, 0x78, 0x78, 0x79, 0x77, 0x87, //2015 
	 0x95, 0xB4, 0xA5, 0xB4, 0xA5, 0xA6, 0x87, 0x88, 0x87, 0x78, 0x87, 0x86, //2016 
	 0xA5, 0xC3, 0xA5, 0xB5, 0xA6, 0xA6, 0x87, 0x88, 0x88, 0x78, 0x87, 0x87, //2017 
	 0xA5, 0xB4, 0xA6, 0xA5, 0xA6, 0x96, 0x88, 0x88, 0x78, 0x78, 0x87, 0x87, //2018 
	 0xA5, 0xB4, 0x96, 0xA5, 0x96, 0x96, 0x88, 0x78, 0x78, 0x79, 0x77, 0x87, //2019 
	 0x95, 0xB4, 0xA5, 0xB4, 0xA5, 0xA6, 0x97, 0x87, 0x87, 0x78, 0x87, 0x86, //2020 
	 0xA5, 0xC3, 0xA5, 0xB5, 0xA6, 0xA6, 0x87, 0x88, 0x88, 0x78, 0x87, 0x86, //2021 
	 0xA5, 0xB4, 0xA5, 0xA5, 0xA6, 0x96, 0x88, 0x88, 0x88, 0x78, 0x87, 0x87, //2022 
	 0xA5, 0xB4, 0x96, 0xA5, 0x96, 0x96, 0x88, 0x78, 0x78, 0x79, 0x77, 0x87, //2023 
	 0x95, 0xB4, 0xA5, 0xB4, 0xA5, 0xA6, 0x97, 0x87, 0x87, 0x78, 0x87, 0x96, //2024 
	 0xA5, 0xC3, 0xA5, 0xB5, 0xA6, 0xA6, 0x87, 0x88, 0x88, 0x78, 0x87, 0x86, //2025 
	 0xA5, 0xB3, 0xA5, 0xA5, 0xA6, 0xA6, 0x88, 0x88, 0x88, 0x78, 0x87, 0x87, //2026 
	 0xA5, 0xB4, 0x96, 0xA5, 0x96, 0x96, 0x88, 0x78, 0x78, 0x78, 0x87, 0x87, //2027 
	 0x95, 0xB4, 0xA5, 0xB4, 0xA5, 0xA6, 0x97, 0x87, 0x87, 0x78, 0x87, 0x96, //2028 
	 0xA5, 0xC3, 0xA5, 0xB5, 0xA6, 0xA6, 0x87, 0x88, 0x88, 0x78, 0x87, 0x86, //2029 
	 0xA5, 0xB3, 0xA5, 0xA5, 0xA6, 0xA6, 0x88, 0x88, 0x88, 0x78, 0x87, 0x87, //2030 
	 0xA5, 0xB4, 0x96, 0xA5, 0x96, 0x96, 0x88, 0x78, 0x78, 0x78, 0x87, 0x87, //2031 
	 0x95, 0xB4, 0xA5, 0xB4, 0xA5, 0xA6, 0x97, 0x87, 0x87, 0x78, 0x87, 0x96, //2032 
	 0xA5, 0xC3, 0xA5, 0xB5, 0xA6, 0xA6, 0x88, 0x88, 0x88, 0x78, 0x87, 0x86, //2033 
	 0xA5, 0xB3, 0xA5, 0xA5, 0xA6, 0xA6, 0x88, 0x78, 0x88, 0x78, 0x87, 0x87, //2034 
	 0xA5, 0xB4, 0x96, 0xA5, 0xA6, 0x96, 0x88, 0x88, 0x78, 0x78, 0x87, 0x87, //2035 
	 0x95, 0xB4, 0xA5, 0xB4, 0xA5, 0xA6, 0x97, 0x87, 0x87, 0x78, 0x87, 0x96, //2036 
	 0xA5, 0xC3, 0xA5, 0xB5, 0xA6, 0xA6, 0x87, 0x88, 0x88, 0x78, 0x87, 0x86, //2037 
	 0xA5, 0xB3, 0xA5, 0xA5, 0xA6, 0xA6, 0x88, 0x88, 0x88, 0x78, 0x87, 0x87, //2038 
	 0xA5, 0xB4, 0x96, 0xA5, 0xA6, 0x96, 0x88, 0x88, 0x78, 0x78, 0x87, 0x87, //2039 
	 0x95, 0xB4, 0xA5, 0xB4, 0xA5, 0xA6, 0x97, 0x87, 0x87, 0x78, 0x87, 0x96, //2040 
	 0xA5, 0xC3, 0xA5, 0xB5, 0xA5, 0xA6, 0x87, 0x88, 0x87, 0x78, 0x87, 0x86, //2041 
	 0xA5, 0xB3, 0xA5, 0xB5, 0xA6, 0xA6, 0x88, 0x88, 0x88, 0x78, 0x87, 0x87, //2042 
	 0xA5, 0xB4, 0x96, 0xA5, 0xA6, 0x96, 0x88, 0x88, 0x78, 0x78, 0x87, 0x87, //2043 
	 0x95, 0xB4, 0xA5, 0xB4, 0xA5, 0xA6, 0x97, 0x87, 0x87, 0x88, 0x87, 0x96, //2044 
	 0xA5, 0xC3, 0xA5, 0xB4, 0xA5, 0xA6, 0x87, 0x88, 0x87, 0x78, 0x87, 0x86, //2045 
	 0xA5, 0xB3, 0xA5, 0xB5, 0xA6, 0xA6, 0x87, 0x88, 0x88, 0x78, 0x87, 0x87, //2046 
	 0xA5, 0xB4, 0x96, 0xA5, 0xA6, 0x96, 0x88, 0x88, 0x78, 0x78, 0x87, 0x87, //2047 
	 0x95, 0xB4, 0xA5, 0xB4, 0xA5, 0xA5, 0x97, 0x87, 0x87, 0x88, 0x86, 0x96, //2048 
	 0xA4, 0xC3, 0xA5, 0xA5, 0xA5, 0xA6, 0x97, 0x87, 0x87, 0x78, 0x87, 0x86, //2049 
	 0xA5, 0xC3, 0xA5, 0xB5, 0xA6, 0xA6, 0x87, 0x88, 0x78, 0x78, 0x87, 0x87 //2050 
									  };

		#endregion

		#region Core

		/// &lt;summary&gt;
		/// 取得指定阴历年的阴历闰月月份。
		/// &lt;/summary&gt;
		/// &lt;param name="iLunarYear"&gt;年份。&lt;/param&gt;
		/// &lt;returns&gt;返回指定年的闰月月份。&lt;/returns&gt;
		private int GetLeapMonth(ushort iLunarYear)
		{
			byte Flag;
			if (iLunarYear &lt; START_YEAR || iLunarYear &gt; END_YEAR)
			{
				return 0;
			}

			Flag = gLunarMonth[(iLunarYear - START_YEAR)/2];
			if ((iLunarYear - START_YEAR)%2 == 0)
			{
				return Flag &gt;&gt; 4;
			}
			else
			{
				return Flag &amp; 0x0F;
			}
		}


		/// &lt;summary&gt;
		/// 计算指定阴历年月的总天数。
		/// &lt;/summary&gt;
		/// &lt;param name="iLunarYear"&gt;年份。&lt;/param&gt;
		/// &lt;param name="iLunarMonth"&gt;月份。&lt;/param&gt;
		/// &lt;returns&gt;
		/// 返回阴历阴历年月的天数，如果该月为闰月，高字为第二个该月的天数，否则高字为0。
		/// &lt;/returns&gt;
		/// &lt;remarks&gt;
		/// 指定年月范围在1901年1月---2050年12月之间。
		/// &lt;/remarks&gt;
		private uint GetLunarMonthDays(ushort iLunarYear, ushort iLunarMonth)
		{
			int Height, Low;
			int iBit;
			if (iLunarYear &lt; START_YEAR || iLunarYear &gt; END_YEAR)
			{
				return 30;
			}
			Height = 0;
			Low = 29;
			iBit = 16 - iLunarMonth;
			if (iLunarMonth &gt; GetLeapMonth(iLunarYear) &amp;&amp; GetLeapMonth(iLunarYear) &gt; 0)
			{
				iBit--;
			}

			if ((gLunarMonthDay[iLunarYear - START_YEAR] &amp; (1 &lt;&lt; iBit)) &gt; 0)

			{
				Low++;
			}

			if (iLunarMonth == GetLeapMonth(iLunarYear))
			{
				if ((gLunarMonthDay[iLunarYear - START_YEAR] &amp; (1 &lt;&lt; (iBit - 1))) &gt; 0)
				{
					Height = 30;
				}
				else
				{
					Height = 29;
				}
			}
			return (uint) (Low) | (uint) (Height) &lt;&lt; 16; //合成为uint 
		}


		/// &lt;summary&gt;
		/// 计算指定阴历年总天数。
		/// &lt;/summary&gt;
		/// &lt;param name="iLunarYear"&gt;指定阴历年，范围1901-2050。&lt;/param&gt;
		/// &lt;returns&gt;返指定阴历年的总天数。&lt;/returns&gt;
		private int GetLunarYearDays(ushort iLunarYear)
		{
			int Days;
			uint tmp;
			if (iLunarYear &lt; START_YEAR || iLunarYear &gt; END_YEAR)
			{
				return 0;
			}

			Days = 0;
			for (ushort i = 1; i &lt;= 12; i++)
			{
				tmp = GetLunarMonthDays(iLunarYear, i);
				Days = Days + ((ushort) (tmp &gt;&gt; 16) &amp; 0xFFFF); //取高位
				Days = Days + (ushort) (tmp); //取低位 
			}
			return Days;
		}


		/// &lt;summary&gt;
		/// 计算从1901年1月1日过iSpanDays天后的阴历日期
		/// &lt;/summary&gt;
		/// &lt;param name="iYear"&gt;返回的年份。&lt;/param&gt;
		/// &lt;param name="iMonth"&gt;返回的月份。&lt;/param&gt;
		/// &lt;param name="iDay"&gt;返回的日子。&lt;/param&gt;
		/// &lt;param name="iSpanDays"&gt;天数。&lt;/param&gt;
		private void CalcLunarDate(out ushort iYear, out ushort iMonth, out ushort iDay, uint iSpanDays)
		{
			uint tmp;
			//阳历1901年2月19日为阴历1901年正月初一 
			//阳历1901年1月1日到2月19日共有49天 
			if (iSpanDays &lt; 49)
			{
				iYear = START_YEAR - 1;
				if (iSpanDays &lt; 19)
				{
					iMonth = 11;
					iDay = (ushort) (11 + iSpanDays);
				}
				else
				{
					iMonth = 12;
					iDay = (ushort) (iSpanDays - 18);
				}
				return;
			}

			//下面从阴历1901年正月初一算起 
			iSpanDays = iSpanDays - 49;
			iYear = START_YEAR;
			iMonth = 1;
			iDay = 1;
			//计算年 
			tmp = (uint) GetLunarYearDays(iYear);
			while (iSpanDays &gt;= tmp)
			{
				iSpanDays = iSpanDays - tmp;
				iYear++;
				tmp = (uint) GetLunarYearDays(iYear);
			}
			//计算月 
			tmp = GetLunarMonthDays(iYear, iMonth); //取低位 
			while (iSpanDays &gt;= tmp)
			{
				iSpanDays = iSpanDays - tmp;
				if (iMonth == GetLeapMonth(iYear))
				{
					tmp = (GetLunarMonthDays(iYear, iMonth) &gt;&gt; 16) &amp; 0xFFFF; //取高位 
					if (iSpanDays &lt; tmp)
					{
						break;
					}
					iSpanDays = iSpanDays - tmp;
				}
				iMonth++;
				tmp = GetLunarMonthDays(iYear, iMonth); //取低位 
			}
			//计算日 
			iDay = (ushort) (iDay + iSpanDays);
		}

		#endregion

		#region 星座

		/// &lt;summary&gt;
		/// 计算指定当前日期的星座序号。
		/// &lt;/summary&gt;
		/// &lt;returns&gt;星座序号。&lt;/returns&gt;
		private int GetConstellationIndex()
		{
			int Y, M, D;
			Y = m_Date.Year;
			M = m_Date.Month;
			D = m_Date.Day;
			Y = M*100 + D;
			if (Y &gt;= 321 &amp;&amp; Y &lt;= 419)
			{
				return 0;
			}
			else if (Y &gt;= 420 &amp;&amp; Y &lt;= 520)
			{
				return 1;
			}
			else if (Y &gt;= 521 &amp;&amp; Y &lt;= 620)
			{
				return 2;
			}
			else if (Y &gt;= 621 &amp;&amp; Y &lt;= 722)
			{
				return 3;
			}
			else if (Y &gt;= 723 &amp;&amp; Y &lt;= 822)
			{
				return 4;
			}
			else if (Y &gt;= 823 &amp;&amp; Y &lt;= 922)
			{
				return 5;
			}
			else if (Y &gt;= 923 &amp;&amp; Y &lt;= 1022)
			{
				return 6;
			}
			else if (Y &gt;= 1023 &amp;&amp; Y &lt;= 1121)
			{
				return 7;
			}
			else if (Y &gt;= 1122 &amp;&amp; Y &lt;= 1221)
			{
				return 8;
			}
			else if (Y &gt;= 1222 || Y &lt;= 119)
			{
				return 9;
			}
			else if (Y &gt;= 120 &amp;&amp; Y &lt;= 218)
			{
				return 10;
			}
			else if (Y &gt;= 219 &amp;&amp; Y &lt;= 320)
			{
				return 11;
			}
			else
			{
				return -1;
			}
		}


		/// &lt;summary&gt;
		/// 格式化星座序号为星座名称。
		/// &lt;/summary&gt;
		/// &lt;param name="ConstellationIndex"&gt;星座序号。&lt;/param&gt;
		/// &lt;returns&gt;星座名称。&lt;/returns&gt;
		private string FormatConstellation(int ConstellationIndex)
		{
			if (ConstellationIndex &gt;= 0 &amp;&amp; ConstellationIndex &lt;= 11)
			{
				return ConstellationName[ConstellationIndex];
			}
			else
			{
				return "";
			}
		}

		#endregion

		#region 节气

		/// &lt;summary&gt;
		/// 计算公历当天对应的节气序号。
		/// &lt;/summary&gt;
		/// &lt;returns&gt;返回值0-23为节气序号，-1表示不是节气。&lt;/returns&gt;
		private int GetSolarTermIndex()
		{
			byte Flag;
			int Day, iYear, iMonth, iDay;
			iYear = m_Date.Year;
			if (iYear &lt; START_YEAR || iYear &gt; END_YEAR)
			{
				return -1;
			}

			iMonth = m_Date.Month;
			iDay = m_Date.Day;
			Flag = gLunarHolDay[(iYear - START_YEAR)*12 + iMonth - 1];
			if (iDay &lt; 15)
			{
				Day = 15 - ((Flag &gt;&gt; 4) &amp; 0x0f);
			}
			else
			{
				Day = (Flag &amp; 0x0f) + 15;
			}

			if (iDay == Day)
			{
				if (iDay &gt; 15)
				{
					return (iMonth - 1)*2 + 1;
				}
				else
				{
					return (iMonth - 1)*2;
				}
			}
			else
			{
				return -1;
			}
		}


		/// &lt;summary&gt;
		/// 格式化节气序号为节气名称。
		/// &lt;/summary&gt;
		/// &lt;param name="SolarTermIndex"&gt;节气序号。&lt;/param&gt;
		/// &lt;returns&gt;节气名称。&lt;/returns&gt;
		private string FormatSolarTerm(int SolarTermIndex)
		{
			//string[] stroe = {"小寒", "大寒", "立春", "雨水", "惊蛰", "春分", "清明", "谷雨", "立夏", "小满", "芒种", "夏至", "小暑", "大暑", "立秋", "处暑", "白露", "秋分", "寒露", "霜降", "立冬", "小雪", "大雪", "冬至"};
			if (SolarTermIndex &lt;= this.LunarHolDayName.Length &amp;&amp; SolarTermIndex &gt;= 0)
				return this.LunarHolDayName[SolarTermIndex];
			return "";
		}

		#endregion

		#region 年月日

		/// &lt;summary&gt;
		/// 格式化阴历月份。
		/// &lt;/summary&gt;
		/// &lt;param name="iYear"&gt;年份。&lt;/param&gt;
		/// &lt;returns&gt;干支记年。&lt;/returns&gt;
		private string FormatLunarYear(int iYear)
		{
			string strG = "甲乙丙丁戊己庚辛壬癸";
			string strZ = "子丑寅卯辰巳午未申酉戌亥";
			return strG.Substring((iYear - 4)%10, 1) + strZ.Substring((iYear - 4)%12, 1);
		}


		/// &lt;summary&gt;
		/// 格式化阴历年份。
		/// &lt;/summary&gt;
		/// &lt;param name="iYear"&gt;年份。&lt;/param&gt;
		/// &lt;returns&gt;生肖。&lt;/returns&gt;
		private string FormatAnimalYear(int iYear)
		{
			string strSX = "鼠牛虎免龙蛇马羊猴鸡狗猪";
			return strSX.Substring((iYear - 4)%12, 1);
		}


		/// &lt;summary&gt;
		/// 格式化阴历月份。
		/// &lt;/summary&gt;
		/// &lt;param name="iMonth"&gt;月份。&lt;/param&gt;
		/// &lt;returns&gt;中文月份。&lt;/returns&gt;
		private string FormatLunarMonth(int iMonth)
		{
			string szText = "正二三四五六七八九十";
			if (iMonth &lt;= 10) return szText.Substring(iMonth - 1, 1) + "月";
			if (iMonth == 11) return "十一月";
			if (iMonth == 12) return "十二月";
			return "";
		}


		/// &lt;summary&gt;
		/// 格式化阴历日子。
		/// &lt;/summary&gt;
		/// &lt;param name="iDay"&gt;日子。&lt;/param&gt;
		/// &lt;returns&gt;中文日子。&lt;/returns&gt;
		private string FormatLunarDay(int iDay)
		{
			string szText1 = "初十廿三";
			string szText2 = "一二三四五六七八九十";
			string strDay = "";
			if (iDay != 20 &amp;&amp; iDay != 30)
			{
				try
				{
					strDay = szText1.Substring((iDay - 1)/10, 1);
					strDay = strDay + szText2.Substring((iDay - 1)%10, 1);
				}
				catch(Exception)
				{
					
				}
			}
			else
			{
				strDay = szText1.Substring((iDay/10), 1);
				strDay = strDay + "十";
			}
			return strDay;
		}

		#endregion

		#region OutPut

		/// &lt;summary&gt;阴历日期,以LunarDate(年日月)形式表示。&lt;/summary&gt;
		public LunarDate LunarDate
		{
			get
			{
				if (this.m_LunarDate == null)
				{
					ushort iYear, iMonth, iDay;
					TimeSpan ts = m_Date - (new DateTime(START_YEAR, 1, 1));
					this.CalcLunarDate(out iYear, out iMonth, out iDay, (uint) (ts.Days));
					this.m_LunarDate = new LunarDate(iYear, iMonth, iDay);
				}
				return this.m_LunarDate;
			}
		}


		/// &lt;summary&gt;阴历干支记年。&lt;/summary&gt;
		public string LunarYear
		{
			get
			{
				if (m_LunarYear == "")
					this.m_LunarYear = this.FormatLunarYear(this.LunarDate.Year);
				return this.m_LunarYear;
			}
		}


		/// &lt;summary&gt;阴历生肖。&lt;/summary&gt;
		public string Animal
		{
			get
			{
				if (m_Animal == "")
					this.m_Animal = this.FormatAnimalYear(this.LunarDate.Year);
				return this.m_Animal;
			}
		}


		/// &lt;summary&gt;格式化后的阴历月份。&lt;/summary&gt;
		public string LunarMonth
		{
			get
			{
				if (this.m_LunarMonth == "")
					this.m_LunarMonth = this.FormatLunarMonth(ushort.Parse(this.LunarDate.Month.ToString()));
				return this.m_LunarMonth;
			}
		}


		/// &lt;summary&gt;格式化后的阴历日子。&lt;/summary&gt;
		public string LunarDay
		{
			get
			{
				if (this.m_LunarDay == "")
					this.m_LunarDay = this.FormatLunarDay(ushort.Parse(this.LunarDate.Day.ToString()));
				return this.m_LunarDay;
			}
		}


		/// &lt;summary&gt;格式化后的阴历节气。&lt;/summary&gt;
		public string SolarTerm
		{
			get
			{
				if (this.m_SolarTerm == "")
					this.m_SolarTerm = this.FormatSolarTerm(this.GetSolarTermIndex());
				return this.m_SolarTerm;
			}
		}


		/// &lt;summary&gt;格式化后的星座。&lt;/summary&gt;
		public string Constellation
		{
			get
			{
				if (this.m_Constellation == "")
					this.m_Constellation = this.FormatConstellation(this.GetConstellationIndex());
				return this.m_Constellation;
			}
		}

		#endregion
	}

	public class LunarDate
	{
		private int _y,_m,_d;
		private string lunardate = "";
		private string lunarmonth = "",lunarday = "",lunaryear = "";
		private string solarterm = "",animal = "";


		public LunarDate(DateTime dt)
		{
			LunarDateClass ldc = new LunarDateClass(dt) ;
			this.lunarday = ldc.LunarDay;
			this.lunarmonth = ldc.LunarMonth;
			this.lunaryear = ldc.LunarYear;
			this.solarterm = ldc.SolarTerm;
			this.animal = ldc.Animal;
			this.lunardate = this.lunaryear +"("+ this.animal +")年"+ this.lunarmonth + this.lunarday + (this.solarterm==""?"":" "+this.solarterm);
			this._y = ldc.LunarDate.Year;
			this._m = ldc.LunarDate.Month;
			this._d = ldc.LunarDate.Day;
		}
		public LunarDate(int y, int m, int d)
		{
			this._y = y;
			this._m = m;
			this._d = d;
		}

		public int Year
		{
			get{return this._y;}
		}


		public int Month
		{
			get{return this._m;}
		}


		public int Day
		{
			get{return this._d;}
		}


		public string LunarDay
		{
			get
			{
				return this.lunarday;
			}
		}


		public string LunarMonth
		{
			get
			{
				return this.lunarmonth;
			}
		}


		public string LunarYear
		{
			get
			{
				return this.lunaryear;
			}
		}


		public string SolarTerm
		{
			get
			{
				return this.solarterm;
			}
		}


		public string Animal
		{
			get
			{
				return this.animal;
			}
		}


		public new string ToString()
		{
			return this.lunardate;
		}
		
	}


	#endregion

}
</TEXTAREA><BR><BR><FONT color=#a9a9a9 size=1>这里的编辑器的代码着色功能好难用，IE死了好几次。。</FONT><img src ="http://www.cnblogs.com/drw/aggbug/338305.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/42952/" target="_blank">[新闻]微型博客Twitter取消IM服务 称其ROI差</a><br/><a href="http://www.cnblogs.com" target="_blank">博客园首页</a>&nbsp;<a href="http://space.cnblogs.com" target="_blank">社区</a>&nbsp;<a href="http://news.cnblogs.com" target="_blank">新闻频道</a>&nbsp;<a href="http://space.cnblogs.com/group.htm" target="_blank">小组</a>&nbsp;<a href="http://space.cnblogs.com/q" target="_blank">博问</a>&nbsp;<a href="http://wz.cnblogs.com/" target="_blank">网摘</a>&nbsp;<a href="http://space.cnblogs.com/ing" target="_blank">闪存</a>]]></description></item><item><title>简繁转换如此简单</title><link>http://www.cnblogs.com/drw/archive/2005/07/07/188023.html</link><dc:creator>七月(Lost)</dc:creator><author>七月(Lost)</author><pubDate>Thu, 07 Jul 2005 09:29:00 GMT</pubDate><guid>http://www.cnblogs.com/drw/archive/2005/07/07/188023.html</guid><wfw:comment>http://www.cnblogs.com/drw/comments/188023.html</wfw:comment><comments>http://www.cnblogs.com/drw/archive/2005/07/07/188023.html#Feedback</comments><slash:comments>11</slash:comments><wfw:commentRss>http://www.cnblogs.com/drw/comments/commentRss/188023.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/drw/services/trackbacks/188023.html</trackback:ping><description><![CDATA[<P>发现一个蛮爽的方法： <BR><BR>Public Function StrConv(ByVal str As String, ByVal Conversion As Microsoft.VisualBasic.VbStrConv, Optional ByVal LocaleID As Integer = 0) As String <BR>&nbsp;&nbsp;&nbsp;&nbsp; 成员属于: Microsoft.VisualBasic.Strings </P>
<P>摘要: <BR>返回按照指定转换的 String。 </P>
<P>参数: <BR>Str: 要转换的 String 表达式。 <BR>Conversion: Microsoft.VisualBasic.VbStrConv。指定要执行的转换类型的枚举值。 <BR>LocaleID: LocaleID 值（如果与系统 LocaleID 值不同）。（系统 LocaleID 值为默认值。） <BR><BR><STRONG>实现简体繁体转换就如此简单</STRONG>： <BR>简体转繁体：Microsoft.VisualBasic.Strings.StrConv(InputStr as String, VbStrConv.TraditionalChinese) <BR>繁体转简体：Microsoft.VisualBasic.Strings.StrConv(InputStr as String, VbStrConv.SimplifiedChinese) </P><img src ="http://www.cnblogs.com/drw/aggbug/188023.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/42951/" target="_blank">[新闻]用手机聊Gtalk的方法以及应用总结</a><br/><a href="http://www.cnblogs.com" target="_blank">博客园首页</a>&nbsp;<a href="http://space.cnblogs.com" target="_blank">社区</a>&nbsp;<a href="http://news.cnblogs.com" target="_blank">新闻频道</a>&nbsp;<a href="http://space.cnblogs.com/group.htm" target="_blank">小组</a>&nbsp;<a href="http://space.cnblogs.com/q" target="_blank">博问</a>&nbsp;<a href="http://wz.cnblogs.com/" target="_blank">网摘</a>&nbsp;<a href="http://space.cnblogs.com/ing" target="_blank">闪存</a>]]></description></item><item><title>生成数据分页SQL语句</title><link>http://www.cnblogs.com/drw/archive/2005/05/23/160738.html</link><dc:creator>七月(Lost)</dc:creator><author>七月(Lost)</author><pubDate>Sun, 22 May 2005 16:31:00 GMT</pubDate><guid>http://www.cnblogs.com/drw/archive/2005/05/23/160738.html</guid><wfw:comment>http://www.cnblogs.com/drw/comments/160738.html</wfw:comment><comments>http://www.cnblogs.com/drw/archive/2005/05/23/160738.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnblogs.com/drw/comments/commentRss/160738.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/drw/services/trackbacks/160738.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 最近做几个项目全使用ACCESS数据库，少了存储过程，对数据分页处理有些不太习惯，查了一些资料，设计了一个数据分页类，分四种情况对SQL语句分别处理，自己做个纪录，代码如下：<BR>
<DIV style="BORDER-RIGHT: windowtext 0.5pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 0.5pt solid; PADDING-LEFT: 5.4pt; BACKGROUND: #e6e6e6; PADDING-BOTTOM: 4px; BORDER-LEFT: windowtext 0.5pt solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: windowtext 0.5pt solid">
<DIV><IMG id=Codehighlighter1_7_3166_Open_Image onclick="this.style.display='none'; Codehighlighter1_7_3166_Open_Text.style.display='none'; Codehighlighter1_7_3166_Closed_Image.style.display='inline'; Codehighlighter1_7_3166_Closed_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedBlockStart.gif" align=top><IMG id=Codehighlighter1_7_3166_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_7_3166_Closed_Text.style.display='none'; Codehighlighter1_7_3166_Open_Image.style.display='inline'; Codehighlighter1_7_3166_Open_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ContractedBlock.gif" align=top><SPAN style="COLOR: #0000ff">Public</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN id=Codehighlighter1_7_3166_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff">Class&nbsp;DataHelper</SPAN><SPAN id=Codehighlighter1_7_3166_Open_Text><SPAN style="COLOR: #0000ff">Class</SPAN><SPAN style="COLOR: #000000">&nbsp;DataHelper<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #008000">'</SPAN><SPAN style="COLOR: #008000">''&nbsp;&lt;summary&gt;SQL语句处理数据分页&lt;/summary&gt;</SPAN><SPAN style="COLOR: #008000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top></SPAN><SPAN style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #008000">'</SPAN><SPAN style="COLOR: #008000">''&nbsp;&lt;param&nbsp;name="pageSize"&gt;分量，每页纪录数量&lt;/param&gt;</SPAN><SPAN style="COLOR: #008000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top></SPAN><SPAN style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #008000">'</SPAN><SPAN style="COLOR: #008000">''&nbsp;&lt;param&nbsp;name="pageIndex"&gt;当前页&lt;/param&gt;</SPAN><SPAN style="COLOR: #008000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top></SPAN><SPAN style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #008000">'</SPAN><SPAN style="COLOR: #008000">''&nbsp;&lt;param&nbsp;name="recordCount"&gt;纪录总数&lt;/param&gt;</SPAN><SPAN style="COLOR: #008000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top></SPAN><SPAN style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #008000">'</SPAN><SPAN style="COLOR: #008000">''&nbsp;&lt;param&nbsp;name="tableName"&gt;选取的数据表&lt;/param&gt;</SPAN><SPAN style="COLOR: #008000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top></SPAN><SPAN style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #008000">'</SPAN><SPAN style="COLOR: #008000">''&nbsp;&lt;param&nbsp;name="Fields"&gt;选取的数据字段&lt;/param&gt;</SPAN><SPAN style="COLOR: #008000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top></SPAN><SPAN style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #008000">'</SPAN><SPAN style="COLOR: #008000">''&nbsp;&lt;param&nbsp;name="primaryKey"&gt;字段主键&lt;/param&gt;</SPAN><SPAN style="COLOR: #008000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top></SPAN><SPAN style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #008000">'</SPAN><SPAN style="COLOR: #008000">''&nbsp;&lt;param&nbsp;name="ascending"&gt;是否正向排序&lt;/param&gt;</SPAN><SPAN style="COLOR: #008000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top></SPAN><SPAN style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #008000">'</SPAN><SPAN style="COLOR: #008000">''&nbsp;&lt;param&nbsp;name="condition"&gt;选取条件，Where字句&lt;/param&gt;</SPAN><SPAN style="COLOR: #008000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top></SPAN><SPAN style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #008000">'</SPAN><SPAN style="COLOR: #008000">''&nbsp;&lt;returns&gt;返回SQL语句&lt;/returns&gt;</SPAN><SPAN style="COLOR: #008000"><BR><IMG id=Codehighlighter1_462_2640_Open_Image onclick="this.style.display='none'; Codehighlighter1_462_2640_Open_Text.style.display='none'; Codehighlighter1_462_2640_Closed_Image.style.display='inline'; Codehighlighter1_462_2640_Closed_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_462_2640_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_462_2640_Closed_Text.style.display='none'; Codehighlighter1_462_2640_Open_Image.style.display='inline'; Codehighlighter1_462_2640_Open_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ContractedSubBlock.gif" align=top></SPAN><SPAN style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">Public</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">Shared</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN id=Codehighlighter1_462_2640_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff">Function&nbsp;Paging()</SPAN><SPAN id=Codehighlighter1_462_2640_Open_Text><SPAN style="COLOR: #0000ff">Function</SPAN><SPAN style="COLOR: #000000">&nbsp;Paging(</SPAN><SPAN style="COLOR: #0000ff">ByVal</SPAN><SPAN style="COLOR: #000000">&nbsp;pageSize&nbsp;</SPAN><SPAN style="COLOR: #0000ff">As</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">Integer</SPAN><SPAN style="COLOR: #000000">,&nbsp;</SPAN><SPAN style="COLOR: #0000ff">ByVal</SPAN><SPAN style="COLOR: #000000">&nbsp;pageIndex&nbsp;</SPAN><SPAN style="COLOR: #0000ff">As</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">Integer</SPAN><SPAN style="COLOR: #000000">,&nbsp;</SPAN><SPAN style="COLOR: #0000ff">ByVal</SPAN><SPAN style="COLOR: #000000">&nbsp;recordCount&nbsp;</SPAN><SPAN style="COLOR: #0000ff">As</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">Integer</SPAN><SPAN style="COLOR: #000000">,&nbsp;</SPAN><SPAN style="COLOR: #0000ff">ByVal</SPAN><SPAN style="COLOR: #000000">&nbsp;tableName&nbsp;</SPAN><SPAN style="COLOR: #0000ff">As</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">String</SPAN><SPAN style="COLOR: #000000">,&nbsp;</SPAN><SPAN style="COLOR: #0000ff">ByVal</SPAN><SPAN style="COLOR: #000000">&nbsp;Fields&nbsp;</SPAN><SPAN style="COLOR: #0000ff">As</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">String</SPAN><SPAN style="COLOR: #000000">,&nbsp;</SPAN><SPAN style="COLOR: #0000ff">ByVal</SPAN><SPAN style="COLOR: #000000">&nbsp;primaryKey&nbsp;</SPAN><SPAN style="COLOR: #0000ff">As</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">String</SPAN><SPAN style="COLOR: #000000">,&nbsp;</SPAN><SPAN style="COLOR: #0000ff">ByVal</SPAN><SPAN style="COLOR: #000000">&nbsp;ascending&nbsp;</SPAN><SPAN style="COLOR: #0000ff">As</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">Boolean</SPAN><SPAN style="COLOR: #000000">,&nbsp;</SPAN><SPAN style="COLOR: #0000ff">ByVal</SPAN><SPAN style="COLOR: #000000">&nbsp;condition&nbsp;</SPAN><SPAN style="COLOR: #0000ff">As</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">String</SPAN><SPAN style="COLOR: #000000">)&nbsp;</SPAN><SPAN style="COLOR: #0000ff">As</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">String</SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">Dim</SPAN><SPAN style="COLOR: #000000">&nbsp;sb&nbsp;</SPAN><SPAN style="COLOR: #0000ff">As</SPAN><SPAN style="COLOR: #000000">&nbsp;System.Text.StringBuilder&nbsp;</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">New</SPAN><SPAN style="COLOR: #000000">&nbsp;System.Text.StringBuilder<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">Dim</SPAN><SPAN style="COLOR: #000000">&nbsp;pageCount&nbsp;</SPAN><SPAN style="COLOR: #0000ff">As</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">Integer</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">&nbsp;GetPageCount(recordCount,&nbsp;pageSize)<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">Dim</SPAN><SPAN style="COLOR: #000000">&nbsp;middleIndex&nbsp;</SPAN><SPAN style="COLOR: #0000ff">As</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">Integer</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">&nbsp;GetMidPageIndex(pageCount)<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">Dim</SPAN><SPAN style="COLOR: #000000">&nbsp;firstIndex&nbsp;</SPAN><SPAN style="COLOR: #0000ff">As</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">Integer</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #000000">0</SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">Dim</SPAN><SPAN style="COLOR: #000000">&nbsp;lastIndex&nbsp;</SPAN><SPAN style="COLOR: #0000ff">As</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">Integer</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">&nbsp;pageCount&nbsp;</SPAN><SPAN style="COLOR: #000000">-</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #000000">1</SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">If</SPAN><SPAN style="COLOR: #000000">&nbsp;pageIndex&nbsp;</SPAN><SPAN style="COLOR: #000000">&lt;=</SPAN><SPAN style="COLOR: #000000">&nbsp;firstIndex&nbsp;</SPAN><SPAN style="COLOR: #0000ff">Then</SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">Dim</SPAN><SPAN style="COLOR: #000000">&nbsp;sql&nbsp;</SPAN><SPAN style="COLOR: #0000ff">As</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">String</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">SELECT&nbsp;TOP&nbsp;{0}&nbsp;{1}&nbsp;FROM&nbsp;{2}&nbsp;WHERE&nbsp;{3}&nbsp;ORDER&nbsp;BY&nbsp;{4}&nbsp;{5}"</SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top></SPAN><SPAN style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sb.AppendFormat(sql,&nbsp;pageSize,&nbsp;Fields,&nbsp;tableName,&nbsp;condition,&nbsp;primaryKey,&nbsp;GetSortType(ascending))<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">ElseIf</SPAN><SPAN style="COLOR: #000000">&nbsp;pageIndex&nbsp;</SPAN><SPAN style="COLOR: #000000">&gt;</SPAN><SPAN style="COLOR: #000000">&nbsp;firstIndex&nbsp;</SPAN><SPAN style="COLOR: #0000ff">AndAlso</SPAN><SPAN style="COLOR: #000000">&nbsp;pageIndex&nbsp;</SPAN><SPAN style="COLOR: #000000">&lt;=</SPAN><SPAN style="COLOR: #000000">&nbsp;middleIndex&nbsp;</SPAN><SPAN style="COLOR: #0000ff">Then</SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">Dim</SPAN><SPAN style="COLOR: #000000">&nbsp;sql&nbsp;</SPAN><SPAN style="COLOR: #0000ff">As</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">String</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">SELECT&nbsp;TOP&nbsp;{0}&nbsp;{1}&nbsp;FROM&nbsp;{2}&nbsp;WHERE&nbsp;{3}&nbsp;&lt;&nbsp;(SELECT&nbsp;MIN({3})&nbsp;FROM&nbsp;(SELECT&nbsp;TOP&nbsp;{4}&nbsp;{3}&nbsp;FROM&nbsp;{2}&nbsp;WHERE&nbsp;{5}&nbsp;ORDER&nbsp;BY&nbsp;{3}&nbsp;DESC)&nbsp;ta)&nbsp;ORDER&nbsp;BY&nbsp;{3}&nbsp;DESC"</SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top></SPAN><SPAN style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">If</SPAN><SPAN style="COLOR: #000000">&nbsp;ascending&nbsp;</SPAN><SPAN style="COLOR: #0000ff">Then</SPAN><SPAN style="COLOR: #000000">&nbsp;sql&nbsp;</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">SELECT&nbsp;TOP&nbsp;{0}&nbsp;{1}&nbsp;FROM&nbsp;{2}&nbsp;WHERE&nbsp;{3}&nbsp;&gt;&nbsp;(SELECT&nbsp;MAX({3})&nbsp;FROM&nbsp;(SELECT&nbsp;TOP&nbsp;{4}&nbsp;{3}&nbsp;FROM&nbsp;{2}&nbsp;WHERE&nbsp;{5}&nbsp;ORDER&nbsp;BY&nbsp;{3}&nbsp;ASC)&nbsp;ta)&nbsp;ORDER&nbsp;BY&nbsp;{3}&nbsp;ASC"</SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top></SPAN><SPAN style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sb.AppendFormat(sql,&nbsp;pageSize,&nbsp;Fields,&nbsp;tableName,&nbsp;primaryKey,&nbsp;pageSize&nbsp;</SPAN><SPAN style="COLOR: #000000">*</SPAN><SPAN style="COLOR: #000000">&nbsp;pageIndex,&nbsp;condition)<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">ElseIf</SPAN><SPAN style="COLOR: #000000">&nbsp;pageIndex&nbsp;</SPAN><SPAN style="COLOR: #000000">&gt;</SPAN><SPAN style="COLOR: #000000">&nbsp;middleIndex&nbsp;</SPAN><SPAN style="COLOR: #0000ff">AndAlso</SPAN><SPAN style="COLOR: #000000">&nbsp;pageIndex&nbsp;</SPAN><SPAN style="COLOR: #000000">&lt;</SPAN><SPAN style="COLOR: #000000">&nbsp;lastIndex&nbsp;</SPAN><SPAN style="COLOR: #0000ff">Then</SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">Dim</SPAN><SPAN style="COLOR: #000000">&nbsp;sql&nbsp;</SPAN><SPAN style="COLOR: #0000ff">As</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">String</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">SELECT&nbsp;*&nbsp;FROM&nbsp;(SELECT&nbsp;TOP&nbsp;{0}&nbsp;{1}&nbsp;FROM&nbsp;{2}&nbsp;WHERE&nbsp;{3}&nbsp;&gt;&nbsp;(SELECT&nbsp;MAX({3})&nbsp;FROM&nbsp;(SELECT&nbsp;TOP&nbsp;{4}&nbsp;{3}&nbsp;FROM&nbsp;{2}&nbsp;WHERE&nbsp;{5}&nbsp;ORDER&nbsp;BY&nbsp;{3}&nbsp;ASC&nbsp;)&nbsp;ta)&nbsp;ORDER&nbsp;BY&nbsp;{3}&nbsp;ASC)&nbsp;tb&nbsp;ORDER&nbsp;BY&nbsp;{3}&nbsp;DESC"</SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top></SPAN><SPAN style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">If</SPAN><SPAN style="COLOR: #000000">&nbsp;ascending&nbsp;</SPAN><SPAN style="COLOR: #0000ff">Then</SPAN><SPAN style="COLOR: #000000">&nbsp;sql&nbsp;</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">SELECT&nbsp;*&nbsp;FROM&nbsp;(SELECT&nbsp;TOP&nbsp;{0}&nbsp;{1}&nbsp;FROM&nbsp;{2}&nbsp;WHERE&nbsp;{3}&nbsp;&lt;&nbsp;(SELECT&nbsp;MIN({3})&nbsp;FROM&nbsp;(SELECT&nbsp;TOP&nbsp;{4}&nbsp;{3}&nbsp;FROM&nbsp;{2}&nbsp;WHERE&nbsp;{5}&nbsp;ORDER&nbsp;BY&nbsp;{3}&nbsp;DESC)&nbsp;ta)&nbsp;ORDER&nbsp;BY&nbsp;{3}&nbsp;DESC)&nbsp;&nbsp;tb&nbsp;ORDER&nbsp;BY&nbsp;{3}&nbsp;ASC"</SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top></SPAN><SPAN style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sb.AppendFormat(sql,&nbsp;pageSize,&nbsp;Fields,&nbsp;tableName,&nbsp;primaryKey,&nbsp;recordCount&nbsp;</SPAN><SPAN style="COLOR: #000000">-</SPAN><SPAN style="COLOR: #000000">&nbsp;pageSize&nbsp;</SPAN><SPAN style="COLOR: #000000">*</SPAN><SPAN style="COLOR: #000000">&nbsp;(pageIndex&nbsp;</SPAN><SPAN style="COLOR: #000000">+</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #000000">1</SPAN><SPAN style="COLOR: #000000">),&nbsp;condition)<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">ElseIf</SPAN><SPAN style="COLOR: #000000">&nbsp;pageIndex&nbsp;</SPAN><SPAN style="COLOR: #000000">&gt;=</SPAN><SPAN style="COLOR: #000000">&nbsp;lastIndex&nbsp;</SPAN><SPAN style="COLOR: #0000ff">Then</SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">Dim</SPAN><SPAN style="COLOR: #000000">&nbsp;sql&nbsp;</SPAN><SPAN style="COLOR: #0000ff">As</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">String</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">SELECT&nbsp;*&nbsp;FROM&nbsp;(SELECT&nbsp;TOP&nbsp;{0}&nbsp;{1}&nbsp;FROM&nbsp;{2}&nbsp;WHERE&nbsp;{3}&nbsp;ORDER&nbsp;BY&nbsp;{4}&nbsp;{5})&nbsp;ta&nbsp;ORDER&nbsp;BY&nbsp;{4}&nbsp;{6}"</SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top></SPAN><SPAN style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sb.AppendFormat(sql,&nbsp;recordCount&nbsp;</SPAN><SPAN style="COLOR: #000000">-</SPAN><SPAN style="COLOR: #000000">&nbsp;pageSize&nbsp;</SPAN><SPAN style="COLOR: #000000">*</SPAN><SPAN style="COLOR: #000000">&nbsp;lastIndex,&nbsp;Fields,&nbsp;tableName,&nbsp;condition,&nbsp;primaryKey,&nbsp;GetSortType(</SPAN><SPAN style="COLOR: #0000ff">Not</SPAN><SPAN style="COLOR: #000000">&nbsp;ascending),&nbsp;GetSortType(ascending))<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">End</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">If</SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">Return</SPAN><SPAN style="COLOR: #000000">&nbsp;sb.ToString<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">End&nbsp;Function</SPAN></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top><BR><IMG id=Codehighlighter1_2658_2837_Open_Image onclick="this.style.display='none'; Codehighlighter1_2658_2837_Open_Text.style.display='none'; Codehighlighter1_2658_2837_Closed_Image.style.display='inline'; Codehighlighter1_2658_2837_Closed_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_2658_2837_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_2658_2837_Closed_Text.style.display='none'; Codehighlighter1_2658_2837_Open_Image.style.display='inline'; Codehighlighter1_2658_2837_Open_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ContractedSubBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">Public</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">Shared</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN id=Codehighlighter1_2658_2837_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff">Function&nbsp;GetPageCount()</SPAN><SPAN id=Codehighlighter1_2658_2837_Open_Text><SPAN style="COLOR: #0000ff">Function</SPAN><SPAN style="COLOR: #000000">&nbsp;GetPageCount(</SPAN><SPAN style="COLOR: #0000ff">ByVal</SPAN><SPAN style="COLOR: #000000">&nbsp;recordCount&nbsp;</SPAN><SPAN style="COLOR: #0000ff">As</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">Integer</SPAN><SPAN style="COLOR: #000000">,&nbsp;</SPAN><SPAN style="COLOR: #0000ff">ByVal</SPAN><SPAN style="COLOR: #000000">&nbsp;pageSize&nbsp;</SPAN><SPAN style="COLOR: #0000ff">As</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">Integer</SPAN><SPAN style="COLOR: #000000">)&nbsp;</SPAN><SPAN style="COLOR: #0000ff">As</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">Integer</SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">Return</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">CType</SPAN><SPAN style="COLOR: #000000">(Math.Ceiling(</SPAN><SPAN style="COLOR: #0000ff">CType</SPAN><SPAN style="COLOR: #000000">(recordCount,&nbsp;</SPAN><SPAN style="COLOR: #0000ff">Double</SPAN><SPAN style="COLOR: #000000">)&nbsp;</SPAN><SPAN style="COLOR: #000000">/</SPAN><SPAN style="COLOR: #000000">&nbsp;pageSize),&nbsp;</SPAN><SPAN style="COLOR: #0000ff">Integer</SPAN><SPAN style="COLOR: #000000">)<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">End&nbsp;Function</SPAN></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top><BR><IMG id=Codehighlighter1_2855_3003_Open_Image onclick="this.style.display='none'; Codehighlighter1_2855_3003_Open_Text.style.display='none'; Codehighlighter1_2855_3003_Closed_Image.style.display='inline'; Codehighlighter1_2855_3003_Closed_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_2855_3003_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_2855_3003_Closed_Text.style.display='none'; Codehighlighter1_2855_3003_Open_Image.style.display='inline'; Codehighlighter1_2855_3003_Open_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ContractedSubBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">Public</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">Shared</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN id=Codehighlighter1_2855_3003_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff">Function&nbsp;GetMidPageIndex()</SPAN><SPAN id=Codehighlighter1_2855_3003_Open_Text><SPAN style="COLOR: #0000ff">Function</SPAN><SPAN style="COLOR: #000000">&nbsp;GetMidPageIndex(</SPAN><SPAN style="COLOR: #0000ff">ByVal</SPAN><SPAN style="COLOR: #000000">&nbsp;pageCount&nbsp;</SPAN><SPAN style="COLOR: #0000ff">As</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">Integer</SPAN><SPAN style="COLOR: #000000">)&nbsp;</SPAN><SPAN style="COLOR: #0000ff">As</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">Integer</SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">Return</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">CType</SPAN><SPAN style="COLOR: #000000">(Math.Ceiling(</SPAN><SPAN style="COLOR: #0000ff">CType</SPAN><SPAN style="COLOR: #000000">(pageCount,&nbsp;</SPAN><SPAN style="COLOR: #0000ff">Double</SPAN><SPAN style="COLOR: #000000">)&nbsp;</SPAN><SPAN style="COLOR: #000000">/</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #000000">2</SPAN><SPAN style="COLOR: #000000">),&nbsp;</SPAN><SPAN style="COLOR: #0000ff">Integer</SPAN><SPAN style="COLOR: #000000">)&nbsp;</SPAN><SPAN style="COLOR: #000000">-</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #000000">1</SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">End&nbsp;Function</SPAN></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top><BR><IMG id=Codehighlighter1_3021_3155_Open_Image onclick="this.style.display='none'; Codehighlighter1_3021_3155_Open_Text.style.display='none'; Codehighlighter1_3021_3155_Closed_Image.style.display='inline'; Codehighlighter1_3021_3155_Closed_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_3021_3155_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_3021_3155_Closed_Text.style.display='none'; Codehighlighter1_3021_3155_Open_Image.style.display='inline'; Codehighlighter1_3021_3155_Open_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ContractedSubBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">Public</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">Shared</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN id=Codehighlighter1_3021_3155_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff">Function&nbsp;GetSortType()</SPAN><SPAN id=Codehighlighter1_3021_3155_Open_Text><SPAN style="COLOR: #0000ff">Function</SPAN><SPAN style="COLOR: #000000">&nbsp;GetSortType(</SPAN><SPAN style="COLOR: #0000ff">ByVal</SPAN><SPAN style="COLOR: #000000">&nbsp;ascending&nbsp;</SPAN><SPAN style="COLOR: #0000ff">As</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">Boolean</SPAN><SPAN style="COLOR: #000000">)&nbsp;</SPAN><SPAN style="COLOR: #0000ff">As</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">String</SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">Return</SPAN><SPAN style="COLOR: #000000">&nbsp;(Microsoft.VisualBasic.</SPAN><SPAN style="COLOR: #0000ff">IIf</SPAN><SPAN style="COLOR: #000000">(ascending,&nbsp;</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">ASC</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">,&nbsp;</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">DESC</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">))<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">End&nbsp;Function</SPAN></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align=top></SPAN><SPAN style="COLOR: #0000ff">End&nbsp;Class</SPAN></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top></SPAN></DIV></DIV><BR>PS:在ACCESS下我比较喜欢使用查询代替直接使用复杂的SQL语句，觉得设计方便，使用也方便，不知道对性能有什么影响。<img src ="http://www.cnblogs.com/drw/aggbug/160738.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/42950/" target="_blank">[新闻]Google开拓美政府机构市场 微软业务受冲击</a><br/><a href="http://www.cnblogs.com" target="_blank">博客园首页</a>&nbsp;<a href="http://space.cnblogs.com" target="_blank">社区</a>&nbsp;<a href="http://news.cnblogs.com" target="_blank">新闻频道</a>&nbsp;<a href="http://space.cnblogs.com/group.htm" target="_blank">小组</a>&nbsp;<a href="http://space.cnblogs.com/q" target="_blank">博问</a>&nbsp;<a href="http://wz.cnblogs.com/" target="_blank">网摘</a>&nbsp;<a href="http://space.cnblogs.com/ing" target="_blank">闪存</a>]]></description></item><item><title>Asp.Net 控件 PopComboBox</title><link>http://www.cnblogs.com/drw/archive/2004/12/13/76607.html</link><dc:creator>七月(Lost)</dc:creator><author>七月(Lost)</author><pubDate>Mon, 13 Dec 2004 14:03:00 GMT</pubDate><guid>http://www.cnblogs.com/drw/archive/2004/12/13/76607.html</guid><wfw:comment>http://www.cnblogs.com/drw/comments/76607.html</wfw:comment><comments>http://www.cnblogs.com/drw/archive/2004/12/13/76607.html#Feedback</comments><slash:comments>7</slash:comments><wfw:commentRss>http://www.cnblogs.com/drw/comments/commentRss/76607.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/drw/services/trackbacks/76607.html</trackback:ping><description><![CDATA[Asp.Net 控件 類似WinForm 的 ComboBox <BR>Demo and Src:<A style="FONT-SIZE: 12px; COLOR: #000080; FONT-FAMILY: verdana" href="http://www.aiyao.net/filedownload/PopComboBox/" target=_blank>http://www.aiyao.net/filedownload/PopComboBox/</A> <BR>PicPriview: <BR><A href="http://www.cnblogs.com/images/cnblogs_com/drw/Preview.jpg" target=_blank><IMG height=171 src="http://www.cnblogs.com/images/cnblogs_com/drw/Preview.jpg" width=239 align=absMiddle border=0></A>&nbsp; <BR><BR>注:js代码参照 <A href="http://www.oceanstudio.net/" target=_blank>海洋工作室</A>&nbsp;的 PopMenu2.01<img src ="http://www.cnblogs.com/drw/aggbug/76607.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/42949/" target="_blank">[新闻]消息称苹果正在开发iTunes网络电视</a><br/><a href="http://www.cnblogs.com" target="_blank">博客园首页</a>&nbsp;<a href="http://space.cnblogs.com" target="_blank">社区</a>&nbsp;<a href="http://news.cnblogs.com" target="_blank">新闻频道</a>&nbsp;<a href="http://space.cnblogs.com/group.htm" target="_blank">小组</a>&nbsp;<a href="http://space.cnblogs.com/q" target="_blank">博问</a>&nbsp;<a href="http://wz.cnblogs.com/" target="_blank">网摘</a>&nbsp;<a href="http://space.cnblogs.com/ing" target="_blank">闪存</a>]]></description></item><item><title>Web 站点文件管理</title><link>http://www.cnblogs.com/drw/archive/2004/10/22/55380.html</link><dc:creator>七月(Lost)</dc:creator><author>七月(Lost)</author><pubDate>Fri, 22 Oct 2004 03:05:00 GMT</pubDate><guid>http://www.cnblogs.com/drw/archive/2004/10/22/55380.html</guid><wfw:comment>http://www.cnblogs.com/drw/comments/55380.html</wfw:comment><comments>http://www.cnblogs.com/drw/archive/2004/10/22/55380.html#Feedback</comments><slash:comments>18</slash:comments><wfw:commentRss>http://www.cnblogs.com/drw/comments/commentRss/55380.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/drw/services/trackbacks/55380.html</trackback:ping><description><![CDATA[源码已丢失，请不要再问我下载 <BR><BR><IMG height=294 src="http://www.cnblogs.com/images/cnblogs_com/drw/2.jpg" width=500 border=0> <BR><BR><IMG height=179 src="http://www.cnblogs.com/images/cnblogs_com/drw/3.JPG" width=500 border=0> <BR><IMG height=150 src="http://www.cnblogs.com/images/cnblogs_com/drw/4.JPG" width=500 border=0> <BR><IMG height=382 src="http://www.cnblogs.com/images/cnblogs_com/drw/5.JPG" width=500 border=0> <BR><IMG height=404 src="http://www.cnblogs.com/images/cnblogs_com/drw/6.JPG" width=500 border=0> <BR><IMG height=396 src="http://www.cnblogs.com/images/cnblogs_com/drw/7.JPG" width=415 border=0> <BR><IMG height=401 src="http://www.cnblogs.com/images/cnblogs_com/drw/8.JPG" width=378 border=0><img src ="http://www.cnblogs.com/drw/aggbug/55380.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/42948/" target="_blank">[新闻]微软周一开电话会议 预计将发布Silverlight2.0</a><br/><a href="http://www.cnblogs.com" target="_blank">博客园首页</a>&nbsp;<a href="http://space.cnblogs.com" target="_blank">社区</a>&nbsp;<a href="http://news.cnblogs.com" target="_blank">新闻频道</a>&nbsp;<a href="http://space.cnblogs.com/group.htm" target="_blank">小组</a>&nbsp;<a href="http://space.cnblogs.com/q" target="_blank">博问</a>&nbsp;<a href="http://wz.cnblogs.com/" target="_blank">网摘</a>&nbsp;<a href="http://space.cnblogs.com/ing" target="_blank">闪存</a>]]></description></item><item><title>Some Client Script</title><link>http://www.cnblogs.com/drw/archive/2004/09/04/39678.html</link><dc:creator>七月(Lost)</dc:creator><author>七月(Lost)</author><pubDate>Sat, 04 Sep 2004 10:31:00 GMT</pubDate><guid>http://www.cnblogs.com/drw/archive/2004/09/04/39678.html</guid><wfw:comment>http://www.cnblogs.com/drw/comments/39678.html</wfw:comment><comments>http://www.cnblogs.com/drw/archive/2004/09/04/39678.html#Feedback</comments><slash:comments>4</slash:comments><wfw:commentRss>http://www.cnblogs.com/drw/comments/commentRss/39678.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/drw/services/trackbacks/39678.html</trackback:ping><description><![CDATA[client vbscript:
<DIV style="BORDER-RIGHT: windowtext 0.5pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 0.5pt solid; PADDING-LEFT: 5.4pt; BACKGROUND: #e6e6e6; PADDING-BOTTOM: 4px; BORDER-LEFT: windowtext 0.5pt solid; WIDTH: 98%; PADDING-TOP: 4px; BORDER-BOTTOM: windowtext 0.5pt solid">
<DIV><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top><SPAN style="COLOR: #0000ff">Function</SPAN><SPAN style="COLOR: #000000">&nbsp;postXMLData(PostData,targetUrl)<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">Dim</SPAN><SPAN style="COLOR: #000000">&nbsp;oXml,oData,oUrl<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">Set</SPAN><SPAN style="COLOR: #000000">&nbsp;oXml&nbsp;</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">CreateObject</SPAN><SPAN style="COLOR: #000000">(</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">Microsoft.XMLHTTP</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">)<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;oData&nbsp;</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">PostData<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;oUrl</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">targetUrl<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;oXml.Open(</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">post</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">,oUrl,</SPAN><SPAN style="COLOR: #0000ff">false)</SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;oXml.setrequestheader(</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">content-length</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">,</SPAN><SPAN style="COLOR: #0000ff">len</SPAN><SPAN style="COLOR: #000000">(oData))<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;oXml.setrequestheader(</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">content-type</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">,</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">application/x-www-form-urlencoded")</SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;oXml.send(oData)</SPAN><SPAN style="COLOR: #008000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;postXMLData&nbsp;</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">&nbsp;oXML.responseText&nbsp;<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #0000ff">End&nbsp;Function</SPAN></DIV></DIV><BR>
<DIV style="BORDER-RIGHT: windowtext 0.5pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 0.5pt solid; PADDING-LEFT: 5.4pt; BACKGROUND: #e6e6e6; PADDING-BOTTOM: 4px; BORDER-LEFT: windowtext 0.5pt solid; WIDTH: 98%; PADDING-TOP: 4px; BORDER-BOTTOM: windowtext 0.5pt solid">
<DIV><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top><SPAN style="COLOR: #0000ff">Function</SPAN><SPAN style="COLOR: #000000">&nbsp;URLEncoding(vstrIn)<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">Dim</SPAN><SPAN style="COLOR: #000000">&nbsp;strReturn,ThisChr,innerCode,Hight8,Low8<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;strReturn&nbsp;</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">For</SPAN><SPAN style="COLOR: #000000">&nbsp;i&nbsp;</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #000000">1</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">To</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">Len</SPAN><SPAN style="COLOR: #000000">(vstrIn)<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ThisChr&nbsp;</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">Mid</SPAN><SPAN style="COLOR: #000000">(vStrIn,i,</SPAN><SPAN style="COLOR: #000000">1</SPAN><SPAN style="COLOR: #000000">)<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">If</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">Abs</SPAN><SPAN style="COLOR: #000000">(</SPAN><SPAN style="COLOR: #0000ff">Asc</SPAN><SPAN style="COLOR: #000000">(ThisChr))&nbsp;</SPAN><SPAN style="COLOR: #000000">&lt;</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #000000">&amp;</SPAN><SPAN style="COLOR: #000000">HFF&nbsp;</SPAN><SPAN style="COLOR: #0000ff">Then</SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;strReturn&nbsp;</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">&nbsp;strReturn&nbsp;</SPAN><SPAN style="COLOR: #000000">&amp;</SPAN><SPAN style="COLOR: #000000">&nbsp;ThisChr<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">Else</SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;innerCode&nbsp;</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">Asc</SPAN><SPAN style="COLOR: #000000">(ThisChr)<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">If</SPAN><SPAN style="COLOR: #000000">&nbsp;innerCode&nbsp;</SPAN><SPAN style="COLOR: #000000">&lt;</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #000000">0</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">Then</SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;innerCode&nbsp;</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">&nbsp;innerCode&nbsp;</SPAN><SPAN style="COLOR: #000000">+</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #000000">&amp;</SPAN><SPAN style="COLOR: #000000">H10000<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">End</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">If</SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Hight8&nbsp;</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">&nbsp;(innerCode&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">And</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #000000">&amp;</SPAN><SPAN style="COLOR: #000000">HFF00)</SPAN><SPAN style="COLOR: #000000"></SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #000000">&amp;</SPAN><SPAN style="COLOR: #000000">HFF<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Low8&nbsp;</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">&nbsp;innerCode&nbsp;</SPAN><SPAN style="COLOR: #0000ff">And</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #000000">&amp;</SPAN><SPAN style="COLOR: #000000">HFF<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;strReturn&nbsp;</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">&nbsp;strReturn&nbsp;</SPAN><SPAN style="COLOR: #000000">&amp;</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">%</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #000000">&amp;</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">Hex</SPAN><SPAN style="COLOR: #000000">(Hight8)&nbsp;</SPAN><SPAN style="COLOR: #000000">&amp;</SPAN><SPAN style="COLOR: #000000">&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">%</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #000000">&amp;</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">Hex</SPAN><SPAN style="COLOR: #000000">(Low8)<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">End</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">If</SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">Next</SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;URLEncoding&nbsp;</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">&nbsp;strReturn<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #0000ff">End&nbsp;Function</SPAN></DIV></DIV><BR>
<DIV style="BORDER-RIGHT: windowtext 0.5pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 0.5pt solid; PADDING-LEFT: 5.4pt; BACKGROUND: #e6e6e6; PADDING-BOTTOM: 4px; BORDER-LEFT: windowtext 0.5pt solid; WIDTH: 98%; PADDING-TOP: 4px; BORDER-BOTTOM: windowtext 0.5pt solid">
<DIV><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top><SPAN style="COLOR: #0000ff">Function</SPAN><SPAN style="COLOR: #000000">&nbsp;bytes2BSTR(vIn)<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">Dim</SPAN><SPAN style="COLOR: #000000">&nbsp;strReturn,ThisCharCode,NextCharCode<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;strReturn&nbsp;</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">For</SPAN><SPAN style="COLOR: #000000">&nbsp;i&nbsp;</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #000000">1</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">To</SPAN><SPAN style="COLOR: #000000">&nbsp;LenB(vIn)<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ThisCharCode&nbsp;</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">&nbsp;AscB(MidB(vIn,i,</SPAN><SPAN style="COLOR: #000000">1</SPAN><SPAN style="COLOR: #000000">))<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">If</SPAN><SPAN style="COLOR: #000000">&nbsp;ThisCharCode&nbsp;</SPAN><SPAN style="COLOR: #000000">&lt;</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #000000">&amp;</SPAN><SPAN style="COLOR: #000000">H80&nbsp;</SPAN><SPAN style="COLOR: #0000ff">Then</SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;strReturn&nbsp;</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">&nbsp;strReturn&nbsp;</SPAN><SPAN style="COLOR: #000000">&amp;</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">Chr</SPAN><SPAN style="COLOR: #000000">(ThisCharCode)<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">Else</SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;NextCharCode&nbsp;</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">&nbsp;AscB(MidB(vIn,i</SPAN><SPAN style="COLOR: #000000">+</SPAN><SPAN style="COLOR: #000000">1</SPAN><SPAN style="COLOR: #000000">,</SPAN><SPAN style="COLOR: #000000">1</SPAN><SPAN style="COLOR: #000000">))<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;strReturn&nbsp;</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">&nbsp;strReturn&nbsp;</SPAN><SPAN style="COLOR: #000000">&amp;</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">Chr</SPAN><SPAN style="COLOR: #000000">(</SPAN><SPAN style="COLOR: #0000ff">CLng</SPAN><SPAN style="COLOR: #000000">(ThisCharCode)&nbsp;</SPAN><SPAN style="COLOR: #000000">*</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #000000">&amp;</SPAN><SPAN style="COLOR: #000000">H100&nbsp;</SPAN><SPAN style="COLOR: #000000">+</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">CInt</SPAN><SPAN style="COLOR: #000000">(NextCharCode))<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;i&nbsp;</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">&nbsp;i&nbsp;</SPAN><SPAN style="COLOR: #000000">+</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #000000">1</SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">End</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">If</SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">Next</SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;bytes2BSTR&nbsp;</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">&nbsp;strReturn<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #0000ff">End&nbsp;Function</SPAN></DIV></DIV><img src ="http://www.cnblogs.com/drw/aggbug/39678.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/42947/" target="_blank">[新闻]开心网即将启用”shejiao.com”?</a><br/><a href="http://www.cnblogs.com" target="_blank">博客园首页</a>&nbsp;<a href="http://space.cnblogs.com" target="_blank">社区</a>&nbsp;<a href="http://news.cnblogs.com" target="_blank">新闻频道</a>&nbsp;<a href="http://space.cnblogs.com/group.htm" target="_blank">小组</a>&nbsp;<a href="http://space.cnblogs.com/q" target="_blank">博问</a>&nbsp;<a href="http://wz.cnblogs.com/" target="_blank">网摘</a>&nbsp;<a href="http://space.cnblogs.com/ing" target="_blank">闪存</a>]]></description></item><item><title>今天的对话</title><link>http://www.cnblogs.com/drw/archive/2004/06/18/16957.html</link><dc:creator>七月(Lost)</dc:creator><author>七月(Lost)</author><pubDate>Fri, 18 Jun 2004 09:15:00 GMT</pubDate><guid>http://www.cnblogs.com/drw/archive/2004/06/18/16957.html</guid><wfw:comment>http://www.cnblogs.com/drw/comments/16957.html</wfw:comment><comments>http://www.cnblogs.com/drw/archive/2004/06/18/16957.html#Feedback</comments><slash:comments>3</slash:comments><wfw:commentRss>http://www.cnblogs.com/drw/comments/commentRss/16957.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/drw/services/trackbacks/16957.html</trackback:ping><description><![CDATA[<P>我BOSS问我有没有女朋友，<BR>我说没有。</P>
<P>你知道他怎么说吗？<BR>&nbsp;<BR>他说：不用急，等你三十岁的时候，<BR>那些二十岁的都是你的。 <BR><BR>哈哈哈，听得我好舒坦。 </P><img src ="http://www.cnblogs.com/drw/aggbug/16957.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/42945/" target="_blank">[新闻]Google股价跌破329美元 61%员工期权价值归零</a><br/><a href="http://www.cnblogs.com" target="_blank">博客园首页</a>&nbsp;<a href="http://space.cnblogs.com" target="_blank">社区</a>&nbsp;<a href="http://news.cnblogs.com" target="_blank">新闻频道</a>&nbsp;<a href="http://space.cnblogs.com/group.htm" target="_blank">小组</a>&nbsp;<a href="http://space.cnblogs.com/q" target="_blank">博问</a>&nbsp;<a href="http://wz.cnblogs.com/" target="_blank">网摘</a>&nbsp;<a href="http://space.cnblogs.com/ing" target="_blank">闪存</a>]]></description></item></channel></rss>