<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
<channel>
<title><![CDATA[PaulLeder--程序部落 - ASP]]></title>
<link>http://bokee.shinylife.net/blog/</link>
<description><![CDATA[Be Your Personal Best]]></description>
<language>zh-cn</language>
<copyright><![CDATA[Copyright 2005 PBlog3 v2.8]]></copyright>
<webMaster><![CDATA[paulleder@msn.com(PaulLeder)]]></webMaster>
<generator>PBlog2 v2.4</generator> 
<image>
	<title>PaulLeder--程序部落</title>
	<url>http://bokee.shinylife.net/blog/images/logos.gif</url>
	<link>http://bokee.shinylife.net/blog/</link>
	<description>PaulLeder--程序部落</description>
</image>

			<item>
			<link>http://bokee.shinylife.net/blog/article.asp?id=834</link>
			<title><![CDATA[全角转半角原来这样就可以了]]></title>
			<author>paulleder@msn.com(PaulLeder)</author>
			<category><![CDATA[ASP]]></category>
			<pubDate>Tue,07 Oct 2008 11:21:44 +0800</pubDate>
			<guid>http://bokee.shinylife.net/blog/default.asp?id=834</guid>
		<description><![CDATA[<div class="UBBPanel quotePanel"><div class="UBBTitle"><img src="http://bokee.shinylife.net/blog/images/quote.gif" style="margin:0px 2px -3px 0px" alt="引用内容"/> 引用内容</div><div class="UBBContent">Function DBC2SBC(str)<br/>&#160;&#160;&#160;&#160;If isNull(trim(str)) o&#114; isEmpty(trim(str)) o&#114; str=&#34;&#34; Then<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;DBC2SBC=&#34;&#34;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;exit function<br/>&#160;&#160;&#160;&#160;else<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;Dim i,ret,dbc<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;for i=1&nbsp;&nbsp;to len(str)<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;sel&#101;ct case asc(mid(str,i,1))<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;case 48<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;dbc=0<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;case 49<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;dbc=1<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;case 50<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;dbc=2<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;case 51<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;dbc=3<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;case 52<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;dbc=4<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;case 53<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;dbc=5<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;case 54<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;dbc=6<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;case 55<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;dbc=7<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;case 56<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;dbc=8<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;case 57<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;dbc=9<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;case else<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;dbc=mid(str,i,1)<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;end sel&#101;ct<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;ret=ret&amp;dbc<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;next<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;DBC2SBC=ret<br/>&#160;&#160;&#160;&#160;end if<br/>End Function </div></div><br/>使用<br/><div class="UBBPanel quotePanel"><div class="UBBTitle"><img src="http://bokee.shinylife.net/blog/images/quote.gif" style="margin:0px 2px -3px 0px" alt="引用内容"/> 引用内容</div><div class="UBBContent"><br/>&lt;%<br/>Response.Write DBC2SBC(&#34;３２１３２１２发达哦发放大发对方１３发生大幅４１２３２１&#34;)<br/>%&gt;<br/></div></div>]]></description>
		</item>
		
			<item>
			<link>http://bokee.shinylife.net/blog/article.asp?id=829</link>
			<title><![CDATA[IE=EmulateIE7?]]></title>
			<author>paulleder@msn.com(PaulLeder)</author>
			<category><![CDATA[ASP]]></category>
			<pubDate>Fri,26 Sep 2008 20:54:52 +0800</pubDate>
			<guid>http://bokee.shinylife.net/blog/default.asp?id=829</guid>
		<description><![CDATA[&lt;meta http-equiv=&#34;X-UA-Compatible&#34; content=&#34;IE=EmulateIE7&#34; /&gt;<br/>是打开使用IE8的EmulateIE7开关？]]></description>
		</item>
		
			<item>
			<link>http://bokee.shinylife.net/blog/article.asp?id=739</link>
			<title><![CDATA[。。。call o&#114; argument: &#39;MidB&#39;]]></title>
			<author>paulleder@msn.com(PaulLeder)</author>
			<category><![CDATA[ASP]]></category>
			<pubDate>Tue,25 Mar 2008 12:56:28 +0800</pubDate>
			<guid>http://bokee.shinylife.net/blog/default.asp?id=739</guid>
		<description><![CDATA[刚才写好一发出错了，郁闷，还是直接把作者的解决办法抄过来吧<br/><a href="http://forums.aspfree.com/asp-development-5/shadowuploader-invalid-procedure-call-or-argument-midb-error-when-uploading-154802.html" target="_blank" rel="external">http://forums.aspfree.com/asp-development-5/shadowuploader-invalid-procedure-call-or-argument-midb-error-when-uploading-154802.html</a><br/><br/>If you&#39;re using that code and getting this error:<br/><br/>Code:<br/>Microsoft VBScript runtime (0x800A0005)<br/>Invalid procedure call o&#114; argument: &#39;MidB&#39;<br/>then most chances are that you simply did not add the<br/>proper HTML to your form.<br/><br/>o&#114;dinary HTML form looks like this:<br/><br/>Code:<br/>&lt;form action=&#34;somepage.asp&#34; method=&#34;POST&#34;&gt;<br/><br/>however, when uploading files (not only using my code) you<br/>must add extra bit:<br/><br/>Code:<br/>&lt;form action=&#34;somepage.asp&#34; method=&#34;POST&#34; enctype=&#34;multipart/form-data&#34;&gt;]]></description>
		</item>
		
			<item>
			<link>http://bokee.shinylife.net/blog/article.asp?id=671</link>
			<title><![CDATA[使用GetString()加速ASP脚本]]></title>
			<author>paulleder@msn.com(PaulLeder)</author>
			<category><![CDATA[ASP]]></category>
			<pubDate>Sun,07 Oct 2007 15:39:12 +0800</pubDate>
			<guid>http://bokee.shinylife.net/blog/default.asp?id=671</guid>
		<description><![CDATA[<strong>一、多个Response.Write。</strong><br/>下面的例子演示了如何在一个HTML表格中显示一个数据库的查询的一种方法：<br/>&lt;html&gt;<br/>&lt;body&gt;<br/><br/>&lt;%<br/>set conn=Server.Cr&#101;ateObject(&#34;ADODB.Connection&#34;)<br/>conn.Provider=&#34;Microsoft.Jet.OLEDB.4.0&#34;<br/>conn.Open &#34;c:/webdata/northwind.mdb&#34;<br/><br/>set rs = Server.Cr&#101;ateObject(&#34;ADODB.recordset&#34;)<br/>rs.Open &#34;Sel&#101;ct Companyname, Contactname FROM Customers&#34;, conn<br/>%&gt;<br/><br/>&lt;table border=&#34;1&#34; width=&#34;100%&#34;&gt;<br/>&lt;%do until rs.EOF%&gt;<br/>&nbsp;&nbsp; &lt;tr&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;td&gt;&lt;%Response.Write(rs.fields(&#34;Companyname&#34;))%&gt;&lt;/td&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;td&gt;&lt;%Response.Write(rs.fields(&#34;Contactname&#34;))%&gt;&lt;/td&gt;<br/>&nbsp;&nbsp; &lt;/tr&gt;<br/>&lt;%rs.MoveNext<br/>loop%&gt;<br/>&lt;/table&gt;<br/><br/>&lt;%<br/>rs.close<br/>conn.close<br/>set rs = Nothing<br/>set conn = Nothing<br/>%&gt;<br/><br/>&lt;/body&gt;<br/>&lt;/html&gt;<br/>对于一个大的查询，这将增加脚本的处理时间，因为许多的Response.Write命令必须被服务器处理。<br/>解决的方法是仅用Response.Write 一次创建从 &lt;table&gt; to &lt;/table&gt;的整个字符串。<br/><br/><strong><br/>二、GetString()方法。</strong><br/>GetString()方法允许你仅用Response.Write一次来显示整个字符串。它也消除了 do...loop 代码和检查记录集是否到最后的条件测试。<br/><br/>1、语法<br/>str = rs.GetString(format,rows,coldel,rowdel,nullexpr)<br/>要创建一个包含记录集中数据的HTML表格，我们仅需要使用上面的三个参数，它们是：<br/>coldel：列分隔符。<br/>rowde：行分隔符。<br/>nullexpr：空格。<br/><br/>2、例子<br/>下面的例子中我们使用GetString()方法来获得这个记录集以作为字符串：<br/>&lt;html&gt;<br/>&lt;body&gt;<br/><br/>&lt;%<br/>set conn=Server.Cr&#101;ateObject(&#34;ADODB.Connection&#34;)<br/>conn.Provider=&#34;Microsoft.Jet.OLEDB.4.0&#34;<br/>conn.Open &#34;c:/webdata/northwind.mdb&#34;<br/><br/>set rs = Server.Cr&#101;ateObject(&#34;ADODB.recordset&#34;)<br/>rs.Open &#34;Sel&#101;ct Companyname, Contactname FROM Customers&#34;, conn<br/><br/>str=rs.GetString(,,&#34;&lt;/td&gt;&lt;td&gt;&#34;,&#34;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&#34;,&#34; &#34;)<br/>%&gt;<br/><br/>&lt;table border=&#34;1&#34; width=&#34;100%&#34;&gt;<br/>&nbsp;&nbsp;&lt;tr&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;td&gt;&lt;%Response.Write(str)%&gt;&lt;/td&gt;<br/>&nbsp;&nbsp;&lt;/tr&gt;<br/>&lt;/table&gt;<br/><br/>&lt;%<br/>rs.close<br/>conn.close<br/>set rs = Nothing<br/>set conn = Nothing<br/>%&gt;<br/><br/>&lt;/body&gt;<br/>&lt;/html&gt;<br/>上面的str变量包含了由SQL Sel&#101;ct语句返回的所有列和行所构成的字符串。在每列之间&lt;/td&gt;&lt;td&gt;将出现，在每行之间&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;将出现。这样我们只使用Response.Write一次就实现了开始多个Response.Write实现的HTML。 <br/><br/>]]></description>
		</item>
		
			<item>
			<link>http://bokee.shinylife.net/blog/article.asp?id=644</link>
			<title><![CDATA[ASP日期函数 ]]></title>
			<author>paulleder@msn.com(PaulLeder)</author>
			<category><![CDATA[ASP]]></category>
			<pubDate>Mon,10 Sep 2007 08:57:55 +0800</pubDate>
			<guid>http://bokee.shinylife.net/blog/default.asp?id=644</guid>
		<description><![CDATA[Date 函数<br/>描述:返回当前系统日期。<br/>语法:Date<br/><br/>DateAdd 函数<br/>描述:返回已添加指定时间间隔的日期。<br/>语法:DateAdd(interval, number, date)<br/>interval: 必选。字符串表达式，表示要添加的时间间隔。有关数值，请参阅“设置”部分。<br/>number: 必选。数值表达式，表示要添加的时间间隔的个数。数值表达式可以是正数（得到未来的日期）或负数（得到过去的日期）。<br/>date: 必选。Variant 或要添加 interval 的表示日期的文字。&nbsp;&nbsp;<br/>interval 参数可以有以下值：<br/>yyyy (年) 、q (季度) 、m (月) 、y (一年的日数) 、d (日) 、w (一周的日数) 、ww (周) 、h (小时) 、n (分钟) 、s (秒)<br/>说明:可用 DateAdd 函数从日期中添加或减去指定时间间隔。例如可以使用 DateAdd 从当天算起 30 天以后的日期或从现在算起 45 分钟以后的时间。要向 date 添加以“日”为单位的时间间隔，可以使用“一年的日数”（“y”）、“日”（“d”）或“一周的日数”（“w”）。<br/>DateAdd 函数不会返回无效日期。如下示例将 95 年 1 月 31 日加上一个月：<br/>NewDate = DateAdd(&#34;m&#34;, 1, &#34;31-Jan-95&#34;)<br/>在这个例子中，DateAdd 返回 95 年 2 月 28 日，而不是 95 年 2 月 31 日。如果 date 为 96 年 1 月 31 日，则返回 96 年 2 月 29 日，这是因为 1996 是闰年。<br/>如果计算的日期是在公元 100 年之前则会产生错误。<br/>如果 number 不是 Long 型值，则在计算前四舍五入为最接近的整数。<br/><br/>DateDiff 函数<br/>NewDate = DateAdd(&#34;m&#34;, 1, &#34;31-Jan-95&#34;)<br/>在这个例子中，DateAdd 返回 95 年 2 月 28 日，而不是 95 年 2 月 31 日。如果 date 为 96 年 1 月 31 日，则返回 96 年 2 月 29 日，这是因为 1996 是闰年。<br/>如果计算的日期是在公元 100 年之前则会产生错误。<br/>如果 number 不是 Long 型值，则在计算前四舍五入为最接近的整数。<br/><br/>DateDiff 函数<br/>描述:返回两个日期之间的时间间隔。<br/>语法:DateDiff(interval, date1, date2 [,firstdayofweek[, firstweekofyear&gt;)<br/>interval: 必选。字符串表达式，表示用于计算 date1 和 date2 之间的时间间隔。有关数值，请参阅“设置”部分。<br/>date1, date2: 必选。日期表达式。用于计算的两个日期。<br/>firstdayofweek: 可选。指定星期中第一天的常数。如果没有指定，则默认为星期日。有关数值，请参阅“设置”部分。<br/>firstweekofyear: 可选。指定一年中第一周的常数。如果没有指定，则默认为 1 月 1 日所在的星期。有关数值，请参阅“设置”部分。<br/>interval 参数可以有以下值：<br/>yyyy (年) 、q (季度) 、m (月) 、y (一年的日数) 、d (日) 、w (一周的日数) 、ww (周) 、h (小时) 、n (分钟) 、s (秒)<br/>firstdayofweek 参数可以有以下值：<br/>(以下分别为：常数 值 描述)<br/>vbUseSystem 0 使用区域语言支持 (NLS) API 设置。<br/>vbSunday 1 星期日（默认）<br/>vbMonday 2 星期一<br/>vbTuesday 3 星期二<br/>vbWednesday 4 星期三<br/>vbThursday 5 星期四<br/>vbFriday 6 星期五<br/>vbSaturday 7 星期六<br/>firstweekofyear 参数可以有以下值：<br/>(以下分别为：常数 值 描述)<br/>vbUseSystem 0 使用区域语言支持 (NLS) API 设置。<br/>vbFirstJan1 1 由 1 月 1 日所在的星期开始（默认）。<br/>vbFirstFourDays 2 由在新年中至少有四天的第一周开始。<br/>vbFirstFullWeek 3 由在新的一年中第一个完整的周开始。<br/>说明:DateDiff 函数用于判断在两个日期之间存在的指定时间间隔的数目。例如可以使用 DateDiff 计算两个日期相差的天数，或者当天到当年最后一天之间的星期数。<br/>要计算 date1 和 date2 相差的天数，可以使用“一年的日数”（“y”）或“日”（“d”）。当 interval 为“一周的日数”（“w”）时，DateDiff 返回两个日期之间的星期数。如果 date1 是星期一，则 DateDiff 计算到 date2 之前星期一的数目。此结果包含 date2 而不包含 date1。如果 interval 是“周”（“ww”），则 DateDiff 函数返回日历表中两个日期之间的星期数。函数计算 date1 和 date2 之间星期日的数目。如果 date2 是星期日，DateDiff 将计算 date2，但即使 date1 是星期日，也不会计算 date1。<br/>如果 date1 晚于 date2，则 DateDiff 函数返回负数。<br/>firstdayofweek 参数会对使用“w”和“ww”间隔符号的计算产生影响。<br/>如果 date1 或 date2 是日期文字，则指定的年度会成为日期的固定部分。但是如果 date1 或 date2 被包括在引号 (&#34; &#34;) 中并且省略年份，则在代码中每次计算 date1 或 date2 表达式时，将插入当前年份。这样就可以编写适用于不同年份的程序代码。<br/>在 interval 为“年”（“yyyy”）时，比较 12 月 31 日和来年的 1 月 1 日，虽然实际上只相差一天，DateDiff 返回 1 表示相差一个年份。<br/><br/>DatePart 函数<br/>描述:返回给定日期的指定部分。<br/>语法:DatePart(interval, date[, firstdayofweek[, firstweekofyear&gt;)<br/>DatePart: 函数的语法有以下参数：<br/>interval: 必选。字符串表达式，表示要返回的时间间隔。有关数值，请参阅“设置”部分。<br/>date: 必选。要计算的日期表达式。<br/>firstdayof week: 可选。指定星期中的第一天的常数。如果没有指定，则默认为星期日。有关数值，请参阅“设置”部分。<br/>firstweekofyear: 可选。指定一年中第一周的常数。如果没有指定，则默认为 1 月 1 日所在的星期。有关数值，请参阅“设置”部分。<br/>interval 参数可以有以下值：<br/>yyyy (年) 、q (季度) 、m (月) 、y (一年的日数) 、d (日) 、w (一周的日数) 、ww (周) 、h (小时) 、n (分钟) 、s (秒)<br/>firstdayofweek 参数可以有以下值：<br/>(以下分别为：常数 值 描述)<br/>vbUseSystem 0 使用区域语言支持 (NLS) API 设置。<br/>vbSunday 1 星期日（默认）<br/>vbMonday 2 星期一<br/>vbTuesday 3 星期二<br/>vbWednesday 4 星期三<br/>vbThursday 5 星期四<br/>vbFriday 6 星期五<br/>vbSaturday 7 星期六<br/>firstweekofyear 参数可以有以下值：<br/>(以下分别为：常数 值 描述)<br/>vbUseSystem 0 使用区域语言支持 (NLS) API 设置。<br/>vbFirstJan1 1 由 1 月 1 日所在的星期开始（默认）。<br/>vbFirstFourDays 2 由在新年中至少有四天的第一周开始。<br/>vbFirstFullWeek 3 由在新的一年中第一个完整的周（不跨年度）开始。<br/>说明:DatePart 函数用于计算日期并返回指定的时间间隔。例如使用 DatePart 计算某一天是星期几或当前的时间。<br/>firstdayofweek 参数会影响使用“w”和“ww”间隔符号的计算。<br/>如果 date 是日期文字，则指定的年度会成为日期的固定部分。但是如果 date 被包含在引号 (&#34; &#34;) 中，并且省略年份，则在代码中每次计算 date 表达式时，将插入当前年份。这样就可以编写适用于不同年份的程序代码 ]]></description>
		</item>
		
			<item>
			<link>http://bokee.shinylife.net/blog/article.asp?id=618</link>
			<title><![CDATA[formatDateTime应用]]></title>
			<author>paulleder@msn.com(PaulLeder)</author>
			<category><![CDATA[ASP]]></category>
			<pubDate>Sat,18 Aug 2007 20:58:48 +0800</pubDate>
			<guid>http://bokee.shinylife.net/blog/default.asp?id=618</guid>
		<description><![CDATA[<p class="label"><font size="4"><b>描述</b></font></p>
<p>返回一个日期或时间格式的表达式。</p>
<p class="label"><b>语法</b></p>
<p><b><font style="BACKGROUND-COLOR: #335ea8" color="#ffffff">FormatDateTime</font>(</b><span class="emp"><i>Date</i></span>[<b>,</b><span class="emp"><i>NamedFormat</i></span>]<b>)</b></p>
<p><b><font style="BACKGROUND-COLOR: #335ea8" color="#ffffff">FormatDateTime</font></b>函数语法有如下几部分：</p>
<table cols="2" cellpadding="5" rules="rows" border="1" frame="below">
    <tbody>
        <tr valign="top">
            <td class="label" width="27%"><b>部分</b></td>
            <td class="label" width="73%"><b>描述</b></td>
        </tr>
        <tr valign="top">
            <td width="27%"><span class="emp"><i>Date</i></span></td>
            <td width="73%">必需的。要被格式化的日期表达式。</td>
        </tr>
        <tr valign="top">
            <td width="27%"><span class="emp"><i>NamedFormat</i></span></td>
            <td width="73%">可选的。数字值，表示日期/时间所使用的格式。如果忽略该值，则使用<b>vbGeneralDate</b>。</td>
        </tr>
    </tbody>
</table>
<br />
<p class="label"><b>设置值</b></p>
<p><span class="emp"><i>NamedFormat</i></span>参数的设置值如下：</p>
<table cols="3" cellpadding="5" rules="rows" border="1" frame="below">
    <tbody>
        <tr valign="top">
            <td class="label" width="27%"><b>常数</b></td>
            <td class="label" width="12%"><b>值</b></td>
            <td class="label" width="61%"><b>描述</b></td>
        </tr>
        <tr valign="top">
            <td width="27%"><b>vbGeneralDate</b></td>
            <td width="12%">0</td>
            <td width="61%">显示日期和/或时间。如果有日期部分，则用短日期格式显示。如果有时间部分，则用长时间格式显示。如果都有，两部分都显示。</td>
        </tr>
        <tr valign="top">
            <td width="27%"><b>vbLongDate</b></td>
            <td width="12%">1</td>
            <td width="61%">用计算机区域设置值中指定的长日期格式显示日期。</td>
        </tr>
        <tr valign="top">
            <td width="27%"><b>vbShortDate</b></td>
            <td width="12%">2</td>
            <td width="61%">用计算机区域设置值中指定的短日期格式显示日期。</td>
        </tr>
        <tr valign="top">
            <td width="27%"><b>vbLongTime</b></td>
            <td width="12%">3</td>
            <td width="61%">用计算机区域设置值中指定的时间格式显示时间。</td>
        </tr>
        <tr valign="top">
            <td width="27%"><b>vbShortTime</b></td>
            <td width="12%">4</td>
            <td width="61%">用24小时格式（hh：mm）显示时间。</td>
        </tr>
    </tbody>
</table>
<p><font size="4">Windows中的时间格式还真不少，什么长日期、短日期，两位年份、四位年份等等，在Delphi中可用<font face="Times New Roman">FormatDateTime函数输出这些格式，下面介绍它的用法：</font></font></p>
<p><font face="Times New Roman" size="4">function FormatDateTime(const Format: string; DateTime: TDateTime): string;</font></p>
<p><font face="Times New Roman" size="4">Format参数是一个格式化字符串。DateTime是时间类型。返回值是一种格式化后的字符串，重点来看Format参数中的指令字符：</font></p>
<p><font face="Times New Roman" size="4">c 以短时间格式显示时间，即全部是数字的表示<br />FormatdateTime('c',now);<br />输出为：2004-8-7 9:55:40</font></p>
<p><font face="Times New Roman" size="4">d 对应于时间中的日期，日期是一位则显示一位，两位则显示两位<br />FormatdateTime('d',now);<br />输出可能为1～31<br />dd 和d的意义一样，但它始终是以两位来显示的<br />FormatdateTime('dd',now);<br />输出可能为01～31<br />ddd 显示的是星期几<br />FormatdateTime('ddd',now);<br />输出为: 星期六<br />dddd 和ddd显示的是一样的。<br />但上面两个如果在其他国家可能不一样。<br />ddddd 以短时间格式显示年月日<br />FormatdateTime('ddddd',now);<br />输出为：2004-8-7<br />dddddd 以长时间格式显示年月日<br />FormatdateTime('dddddd',now);<br />输出为：2004年8月7日
<p><font face="Times New Roman" size="4">e/ee/eee/eeee 以相应的位数显示年<br />FormatdateTime('ee',now);<br />输出为：04 （表示04年）</font></p>
<p><font face="Times New Roman" size="4">m/mm/mmm/mmmm 表示月<br />FormatdateTime('m',now);<br />输出为：8<br />FormatdateTime('mm',now);<br />输出为 08<br />FormatdateTime('mmm',now);<br />输出为 八月<br />FormatdateTime('mmmm',now);<br />输出为 八月<br />和ddd/dddd 一样，在其他国家可能不同
<p><font face="Times New Roman" size="4">yy/yyyy 表示年<br />FormatdateTime('yy',now);<br />输出为 04<br />FormatdateTime('yyyy',now);<br />输出为 2004</font></p>
<p><font face="Times New Roman" size="4">h/hh,n/nn,s/ss,z/zzz 分别表示小时，分，秒,毫秒<br />t 以短时间格式显示时间<br />FormatdateTime('t',now);<br />输出为 10:17<br />tt 以长时间格式显示时间<br />FormatdateTime('tt',now);<br />输出为10:18:46</font></p>
<p><font face="Times New Roman" size="4">ampm 以长时间格式显示上午还是下午<br />FormatdateTime('ttampm',now);<br />输出为：10:22:57上午</font></p>
<p><font face="Times New Roman" size="4">如果要在Format中加普通的字符串，可以用双引号隔开那些特定义的字符，</font></p>
<p>这样普通字符串中如果含特殊的字符就不会被显示为时间格式啦：<br />FormatdateTime('&quot;today is&quot; c',now);<br />输出为：today is 2004-8-7 10:26:58</p>
<p><font face="Times New Roman" size="4">时间中也可以加&quot;-&quot;或&quot;\&quot;来分开日期：<br />FormatdateTime('&quot;today is&quot; yy-mm-dd',now);<br />FormatdateTime('&quot;today is&quot; yy\mm\dd',now);<br />输出为： today is 04-08-07</font></p>
<p><font face="Times New Roman" size="4">也可以用&quot;:&quot;来分开时间<br />FormatdateTime('&quot;today is&quot; hh:nn:ss',now);<br />输出为：today is 10:32:23<br /></font><font face="Times New Roman" size="4"></font></p>
<p><font face="Times New Roman" size="4">还可以这样用</font></p>
<p><font face="Times New Roman" size="4">formatDateTime(rs(&quot;time&quot;),vbShortDate)</font></p>
</font></p>
<p>&nbsp;</p>
</font></p>
<p>&nbsp;</p>]]></description>
		</item>
		
			<item>
			<link>http://bokee.shinylife.net/blog/article.asp?id=617</link>
			<title><![CDATA[recordset的getRows()应用]]></title>
			<author>paulleder@msn.com(PaulLeder)</author>
			<category><![CDATA[ASP]]></category>
			<pubDate>Fri,17 Aug 2007 12:43:26 +0800</pubDate>
			<guid>http://bokee.shinylife.net/blog/default.asp?id=617</guid>
		<description><![CDATA[<div class="UBBPanel quotePanel"><div class="UBBTitle"><img src="http://bokee.shinylife.net/blog/images/quote.gif" style="margin:0px 2px -3px 0px" alt="引用内容"/> 引用内容</div><div class="UBBContent">Dim sql,rs,<br/>sql=&#34;sel&#101;ct a0,a1,a2,a3 from [table]&#34;<br/>set rs=Conn.execute(sql)<br/>&#39;这里我们把rs的记录集保存成二纬数组，如下<br/>sql=rs.getRows(-1)&#39;可以查询recordset的getRows()方法,此时sql已经不是上面的存放字符串变量，而是一个二纬数组了<br/>for i=0 to ubound(sql,2)&#39;这里的2其实就是rs记录集里面的记录数所在纬．（这个数组的第一纬是字段名称，第二纬是记录）<br/>&nbsp;&nbsp;&nbsp;&nbsp;response.write sql(0,i)&#39;这里其实输出的就是上面sql查询语句中的所有a0的值<br/>next</div></div><br/><br/><div class="UBBPanel quotePanel"><div class="UBBTitle"><img src="http://bokee.shinylife.net/blog/images/quote.gif" style="margin:0px 2px -3px 0px" alt="引用内容"/> 引用内容</div><div class="UBBContent">GetRows 方法&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br/><br/>将 Recordset 对象的多个记录恢复到数组中。<br/><br/>语法<br/><br/>array = recordset.GetRows( Rows, Start, Fields )<br/><br/>返回值<br/><br/>返回二维数组。<br/><br/>参数<br/><br/>Rows&nbsp;&nbsp;&nbsp;&nbsp;可选，长整型表达式，指定要检索记录数。默认值为 adGetRowsRest (-1)。<br/><br/>Start&nbsp;&nbsp;&nbsp;&nbsp;可选，字符串或长整型，计算得到在 GetRows 操作开始处的记录的书签。也可使用下列 BookmarkEnum 值。<br/><br/>常量 说明 AdBookmarkCurrent 从当前记录开始。 AdBookmarkFirst 从首记录开始。 AdBookmarkLast 从尾记录开始。<br/><br/><br/>Fields&nbsp;&nbsp; 可选，变体型，代表单个字段名、顺序位置、字段名数组或顺序位置号。ADO 仅返回这些字段中的数据。<br/><br/>说明<br/><br/>使用 GetRows 方法可将记录从 Recordset 复制到二维数组中。第一个下标标识字段，第二个则标识记录号。当 GetRows 方法返回数据时数组变量将自动调整到正确大小。<br/><br/>如果不指定 Rows 参数的值，GetRows 方法将自动检索 Recordset 对象中的所有记录。如果请求的记录比可用记录多，则 GetRows 仅返回可用记录数。<br/><br/>如果 Recordset 对象支持书签，则可以通过传送该记录的 Bookmark属性值，来指定 GetRows 方法将从哪个记录开始检索数据。<br/><br/>如要限制 GetRows 调用返回的字段，则可以在 Fields 参数中传送单个字段名/编号或者字段名/编号数组。<br/><br/>在调用 GetRows 后，下一个未读取的记录成为当前记录，或者如果没有更多的记录，则 EOF属性设置为 True。</div></div><br/>]]></description>
		</item>
		
			<item>
			<link>http://bokee.shinylife.net/blog/article.asp?id=600</link>
			<title><![CDATA[Microsoft JET Database Engine (0x80004005)未指定的错误解决]]></title>
			<author>paulleder@msn.com(PaulLeder)</author>
			<category><![CDATA[ASP]]></category>
			<pubDate>Wed,15 Aug 2007 15:11:20 +0800</pubDate>
			<guid>http://bokee.shinylife.net/blog/default.asp?id=600</guid>
		<description><![CDATA[出现这个问题的原因都是因为权限问题:<br/>可以从以下几个方面考虑和修改:<br/><div class="UBBPanel quotePanel"><div class="UBBTitle"><img src="http://bokee.shinylife.net/blog/images/quote.gif" style="margin:0px 2px -3px 0px" alt="引用内容"/> 引用内容</div><div class="UBBContent">1、系统可能没有注册msjetoledb40.dll，解决办法是<br/>&nbsp;&nbsp; 点 开始---&gt;运行， 输入 regsvr32 msjetoledb40.dll， 回车即可；<br/>2、数据库所在文件夹权限<br/>&nbsp;&nbsp; 打开办法是：打开我的电脑，然后点菜单上的“文件夹选项”---&gt;查看，然后把“使用简单文件夹共享(推荐)”前面的钩去掉，然后点“确认”；接下来回到需要打开权限的文件夹（数据库存放的文件夹），右键---&gt; 属性---&gt;安全,然后点“添加”---&gt;&#34;高级&#34;---&gt;立即查找---&gt;然后在下面的地方选择“everyone”---&gt;确定---&gt;点刚才加入的&#34;everyone&#34;，然后在下面的大框编辑everyone权限为完全控制，保存即可。<br/>3、需要打开guest用户<br/>&nbsp;&nbsp; 打开方法:我的电脑---&gt;控制面板---&gt;管理工具----&gt;计算机管理---&gt;本地用户和组---用户---找到&#34;guest&#34;，双击，然后把弹出来的狂上的“帐户已停用”前的钩去掉，保存即可。<br/>4、temp（临时文件夹）权限<br/>&nbsp;&nbsp; 打开办法：windows---&gt;temp，单击右键选择-属性，你就会看到一个叫做“安全”的选项，添加一个everyone,权限设置为完全控制，再将你正在使用windows的用户也设置为完全控制.(此修改步骤类似问题2。，可以参照修改)</div></div>以上为全部解决办法，希望对你有帮助。]]></description>
		</item>
		
			<item>
			<link>http://bokee.shinylife.net/blog/article.asp?id=589</link>
			<title><![CDATA[文章内容分页函数(asp,javascript)]]></title>
			<author>paulleder@msn.com(PaulLeder)</author>
			<category><![CDATA[ASP]]></category>
			<pubDate>Sat,28 Jul 2007 17:46:12 +0800</pubDate>
			<guid>http://bokee.shinylife.net/blog/default.asp?id=589</guid>
		<description><![CDATA[<div class="UBBPanel quotePanel"><div class="UBBTitle"><img src="http://bokee.shinylife.net/blog/images/quote.gif" style="margin:0px 2px -3px 0px" alt="引用内容"/> 引用内容</div><div class="UBBContent">&lt;%<br/>&#39;此程序修改于网上资源,版权归原作者所有<br/>&#39;使用此函数如<br/>&#39;ASP:ContentPagination(rs(&#34;GetContent&#34;),4000,&#34;cid=&#34;&amp;cid&amp;&#34;&amp;id=&#34;&amp;id,&#34;&#34;,false,&#34;&#34;)<br/>&#39;UrlReWrite:ContentPagination(rs(&#34;GetContent&#34;),4000,&#34;cid=&#34;&amp;cid&amp;&#34;&amp;id=&#34;&amp;id,&#34;&#34;,true,&#34;abc.html&#34;)<br/>&#39;参数列表<br/>&#39;hiwebstr=需分页的内容 perLength=每页显示的字数,preFix=前缀,suffix=后缀,IsURLRewrite=是否重写URL,fileExt=后缀名<br/>&#39;fileExt=后缀名只对IsURLRewrite为true有效<br/>Function ContentPagination(hiwebstr,perLength,preFix,suffix,IsURLRewrite,fileExt)<br/>&#160;&#160;&#160;&#160;Dim ContentLen, maxperpage, Paginate<br/>&#160;&#160;&#160;&#160;Dim arrContent, strContent, i<br/>&#160;&#160;&#160;&#160;Dim m_strFileUrl,m_strFileExt,m_strFilesFix<br/>&#160;&#160;&#160;&#160;Dim CurrentPage,ArticleContent,UserArticle<br/>&#160;&#160;&#160;&#160;if IsURLRewrite=&#34;&#34; o&#114; isEmpty(IsURLRewrite) o&#114; isNull(IsURLRewrite) o&#114; lcase(IsURLRewrite)=&#34;false&#34; then<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;IsURLRewrite=false<br/>&#160;&#160;&#160;&#160;else<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;IsURLRewrite=true<br/>&#160;&#160;&#160;&#160;end if<br/>&#160;&#160;&#160;&#160;maxPagesize=perLength<br/>&#160;&#160;&#160;&#160;strContent = Ins&#101;rtPageBreak(hiwebstr)<br/>&#160;&#160;&#160;&#160;ContentLen = Len(strContent)<br/>&#160;&#160;&#160;&#160;CurrentPage=Request.QueryString(&#34;Page&#34;)<br/>&#160;&#160;&#160;&#160;If CurrentPage=&#34;&#34; Then CurrentPage=0<br/>&#160;&#160;&#160;&#160;If InStr(strContent, &#34;[hiweb_break]&#34;) &lt;= 0 Then<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;ArticleContent = &#34;&lt;div id=&#34;&#34;NewsContentLabel&#34;&#34; class=&#34;&#34;NewsContent&#34;&#34;&gt;&#34; &amp; strContent &amp; &#34;&lt;/div&gt;&lt;div id=&#34;&#34;Message&#34;&#34; class=&#34;&#34;Message&#34;&#34;&gt;&lt;/div&gt;&#34;<br/>&#160;&#160;&#160;&#160;Else<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;arrContent = Split(strContent, &#34;[hiweb_break]&#34;)<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;Paginate = UBound(arrContent) + 1<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;If CurrentPage = 0 Then<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;CurrentPage = 1<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;Else<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;CurrentPage = CLng(CurrentPage)<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;End If<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;If CurrentPage &lt; 1 Then CurrentPage = 1<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;If CurrentPage &gt; Paginate Then CurrentPage = Paginate<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;strContent = &#34;&lt;div id=&#34;&#34;NewsContentLabel&#34;&#34; class=&#34;&#34;NewsContent&#34;&#34;&gt;&#34;&amp; arrContent(CurrentPage - 1)<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;ArticleContent = ArticleContent &amp; strContent<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;If UserArticle = True Then<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;ArticleContent = ArticleContent &amp; &#34;&lt;/p&gt;&lt;/div&gt;&lt;div id=&#34;&#34;Message&#34;&#34; class=&#34;&#34;Message&#34;&#34;&gt;&lt;/div&gt;&lt;p align=&#34;&#34;center&#34;&#34;&gt;&lt;b&gt;&#34;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;Else<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;ArticleContent = ArticleContent &amp; &#34;&lt;/p&gt;&lt;/div&gt;&lt;p align=&#34;&#34;center&#34;&#34;&gt;&lt;b&gt;&#34;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;End If<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;If IsURLRewrite Then<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;Dim tmpA,tmpB<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;tmpA=replace(preFix,&#34;&amp;&#34;,&#34;_&#34;)&#39;在次可以修改静态页面URL样式<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;tmpB=replace(sufFix,&#34;&amp;&#34;,&#34;_&#34;)&#39;在次可以修改静态页面URL样式<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;m_strFileUrl = tmpA&amp;&#34;_&#34;&amp;tmpB&amp;&#34;page=&#34;&#39;在次可以修改静态页面URL样式<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;m_strFileExt = fileExt<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;Else<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;m_strFileExt = &#34;&#34;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;if preFix&lt;&gt;&#34;&#34; then<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;m_strFileUrl = &#34;?&#34;&amp;preFix&amp;&#34;&amp;Page=&#34;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;else<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;m_strFileUrl = &#34;?Page=&#34;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;end if<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;End If<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;If CurrentPage &gt; 1 Then<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;If IsURLRewrite And (CurrentPage-1) = 1 Then<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;ArticleContent = ArticleContent &amp; &#34;&lt;a href=&#34;&#34;&#34;&amp; m_strFileExt &amp; &#34;&#34;&#34;&gt;上一页&lt;/a&gt;&amp;nbsp;&amp;nbsp;&#34;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;Else<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;ArticleContent = ArticleContent &amp; &#34;&lt;a href=&#34;&#34;&#34;&amp; m_strFileUrl &amp; CurrentPage - 1 &amp; suffix &amp; m_strFileExt &amp; &#34;&#34;&#34;&gt;上一页&lt;/a&gt;&amp;nbsp;&amp;nbsp;&#34;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;End If<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;End If<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;For i = 1 To Paginate<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;If i = CurrentPage Then<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;ArticleContent = ArticleContent &amp; &#34;&lt;span style=&#34;&#34;color:red;&#34;&#34;&gt;[&#34; &amp; CStr(i) &amp; &#34;]&lt;/span&gt;&amp;nbsp;&#34;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;Else<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;If IsURLRewrite And i = 1 Then<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;ArticleContent = ArticleContent &amp; &#34;&lt;a href=&#34;&#34;&#34;&amp; m_strFileExt &amp; &#34;&#34;&#34;&gt;[&#34; &amp; i &amp; &#34;]&lt;/a&gt;&amp;nbsp;&#34;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;Elseif IsURLRewrite And i &lt;&gt; 1 then<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;ArticleContent = ArticleContent &amp; &#34;&lt;a href=&#34;&#34;&#34;&amp; m_strFileUrl &amp; i &amp; suffix &amp; &#34;_&#34; &amp; m_strFileExt &amp; &#34;&#34;&#34;&gt;[&#34; &amp; i &amp; &#34;]&lt;/a&gt;&amp;nbsp;&#34;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;Else<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;ArticleContent = ArticleContent &amp; &#34;&lt;a href=&#34;&#34;&#34;&amp; m_strFileUrl &amp; i &amp; suffix &amp; m_strFileExt &amp; &#34;&#34;&#34;&gt;[&#34; &amp; i &amp; &#34;]&lt;/a&gt;&amp;nbsp;&#34;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;End if<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;End If<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;Next<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;If CurrentPage &lt; Paginate Then<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;If IsURLRewrite then<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;ArticleContent = ArticleContent &amp; &#34;&amp;nbsp;&lt;a href=&#34;&#34;&#34;&amp; m_strFileUrl &amp; CurrentPage + 1 &amp; suffix &amp; &#34;_&#34;&amp; m_strFileExt &amp; &#34;&#34;&#34;&gt;下一页&lt;/a&gt;&#34;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;else<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;ArticleContent = ArticleContent &amp; &#34;&amp;nbsp;&lt;a href=&#34;&#34;&#34;&amp; m_strFileUrl &amp; CurrentPage + 1 &amp; suffix &amp; m_strFileExt &amp; &#34;&#34;&#34;&gt;下一页&lt;/a&gt;&#34;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;end if<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;End If<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;ArticleContent = ArticleContent &amp; &#34;&lt;/b&gt;&lt;/p&gt;&#34;<br/>&#160;&#160;&#160;&#160;End If<br/>&#160;&#160;&#160;&#160;Response.Write(ArticleContent)<br/>End Function<br/>Dim maxPagesize&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#39;设置分页字数,全局变量<br/>Function Ins&#101;rtPageBreak(strText)<br/>&#160;&#160;&#160;&#160;Dim strPagebreak,s,ss<br/>&#160;&#160;&#160;&#160;Dim i,IsCount,c,iCount,strTemp,Temp_String,Temp_Array<br/>&#160;&#160;&#160;&#160;strPagebreak=&#34;[hiweb_break]&#34;<br/>&#160;&#160;&#160;&#160;s=strText<br/>&#160;&#160;&#160;&#160;&#39;If Len(s)&lt;maxPagesize Then<br/>&#160;&#160;&#160;&#160;If Len(s)&lt;int(maxPagesize+maxPagesize/3) Then<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;Ins&#101;rtPageBreak=s<br/>&#160;&#160;&#160;&#160;End If<br/>&#160;&#160;&#160;&#160;s=Replace(s, strPagebreak, &#34;&#34;)<br/>&#160;&#160;&#160;&#160;s=Replace(s, &#34;&amp;nbsp;&#34;, &#34;&lt;&amp;nbsp;&gt;&#34;)<br/>&#160;&#160;&#160;&#160;s=Replace(s, &#34;&amp;gt;&#34;, &#34;&lt;&amp;gt;&gt;&#34;)<br/>&#160;&#160;&#160;&#160;s=Replace(s, &#34;&amp;lt;&#34;, &#34;&lt;&amp;lt;&gt;&#34;)<br/>&#160;&#160;&#160;&#160;s=Replace(s, &#34;&amp;quot;&#34;, &#34;&lt;&amp;quot;&gt;&#34;)<br/>&#160;&#160;&#160;&#160;s=Replace(s, &#34;&amp;#39;&#34;, &#34;&lt;&amp;#39;&gt;&#34;)<br/>&#160;&#160;&#160;&#160;If s&lt;&gt;&#34;&#34; and maxPagesize&lt;&gt;0 and InStr(1,s,strPagebreak)=0 then<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;IsCount=True<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;Temp_String=&#34;&#34;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;For i= 1 To Len(s)<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;c=Mid(s,i,1)<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;If c=&#34;&lt;&#34; Then<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;IsCount=False<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;ElseIf c=&#34;&gt;&#34; Then<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;IsCount=True<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;Else<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;If IsCount=True Then<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;If Abs(Asc(c))&gt;255 o&#114; Asc(c)&lt;0 Then&#39;需要加上Asc(c)&lt;0部分，不然0~-254部分就检测不到了<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;iCount=iCount+2<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;Else<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;iCount=iCount+1<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;End If<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;If iCount&gt;=maxPagesize And i&lt;Len(s) Then<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;strTemp=Left(s,i)<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;If CheckPagination(strTemp,&#34;table|a|b&gt;|i&gt;|strong|div|span&#34;) then<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;Temp_String=Temp_String &amp; Trim(CStr(i)) &amp; &#34;,&#34; <br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;iCount=0<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;End If<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;End If<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;End If<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;End If&#160;&#160;&#160;&#160;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;Next<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;If Len(Temp_String)&gt;1 Then Temp_String=Left(Temp_String,Len(Temp_String)-1)<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;Temp_Array=Split(Temp_String,&#34;,&#34;)<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;For i = UBound(Temp_Array) To LBound(Temp_Array) Step -1<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;ss = Mid(s,Temp_Array(i)+1)<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;If Len(ss) &gt; 380 Then<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;s=Left(s,Temp_Array(i)) &amp; strPagebreak &amp; ss<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;Else<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;s=Left(s,Temp_Array(i)) &amp; ss<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;End If<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;Next<br/>&#160;&#160;&#160;&#160;End If<br/>&#160;&#160;&#160;&#160;s=Replace(s, &#34;&lt;&amp;nbsp;&gt;&#34;, &#34;&amp;nbsp;&#34;)<br/>&#160;&#160;&#160;&#160;s=Replace(s, &#34;&lt;&amp;gt;&gt;&#34;, &#34;&amp;gt;&#34;)<br/>&#160;&#160;&#160;&#160;s=Replace(s, &#34;&lt;&amp;lt;&gt;&#34;, &#34;&amp;lt;&#34;)<br/>&#160;&#160;&#160;&#160;s=Replace(s, &#34;&lt;&amp;quot;&gt;&#34;, &#34;&amp;quot;&#34;)<br/>&#160;&#160;&#160;&#160;s=Replace(s, &#34;&lt;&amp;#39;&gt;&#34;, &#34;&amp;#39;&#34;)<br/>&#160;&#160;&#160;&#160;Ins&#101;rtPageBreak=s<br/>End Function<br/>Function CheckPagination(strTemp,strFind)<br/>&#160;&#160;&#160;&#160;Dim i,n,m_ingBeginNum,m_intEndNum<br/>&#160;&#160;&#160;&#160;Dim m_strBegin,m_strEnd,FindArray<br/>&#160;&#160;&#160;&#160;strTemp=LCase(strTemp)<br/>&#160;&#160;&#160;&#160;strFind=LCase(strFind)<br/>&#160;&#160;&#160;&#160;If strTemp&lt;&gt;&#34;&#34; and strFind&lt;&gt;&#34;&#34; then<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;FindArray=split(strFind,&#34;|&#34;)<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;For i = 0 to Ubound(FindArray)<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;m_strBegin=&#34;&lt;&#34;&amp;FindArray(i)<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;m_strEnd&nbsp;&nbsp;=&#34;&lt;/&#34;&amp;FindArray(i)<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;n=0<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;do while instr(n+1,strTemp,m_strBegin)&lt;&gt;0<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;n=instr(n+1,strTemp,m_strBegin)<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;m_ingBeginNum=m_ingBeginNum+1<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;Loop<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;n=0<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;do while instr(n+1,strTemp,m_strEnd)&lt;&gt;0<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;n=instr(n+1,strTemp,m_strEnd)<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;m_intEndNum=m_intEndNum+1<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;Loop<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;If m_intEndNum=m_ingBeginNum then<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;CheckPagination=True<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;Else<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;CheckPagination=False<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;Exit Function<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;End If<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;Next<br/>&#160;&#160;&#160;&#160;Else<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;CheckPagination=False<br/>&#160;&#160;&#160;&#160;End If<br/>End Function<br/>%&gt;</div></div><br/><br/><br/>//JS分页，不完整。<br/><div class="UBBPanel"><div class="UBBTitle"><img src="http://bokee.shinylife.net/blog/images/html.gif" style="margin:0px 2px -3px 0px"> HTML代码</div><div class="UBBContent"><TEXTAREA rows="8" id="temp87751"><style>
* {
   font-size:10.2pt;
   font-family:tahoma;
   line-height:150%;
}
.divContent
{
   border:1px solid red;
   background-color:#FFD2D3;
   width:500px;
   word-break:break-all;
   margin:10px 0px 10px;
   padding:10px;
}
</style>
header
<div id=&#34;divPagenation&#34;></div>
<div id=&#34;divContent&#34;></div>
footer
<script language=&#34;jscript&#34;>
<!--
s=&#34;<p>女老师竭力向孩子们证明，学习好功课的重要性。 </p><p>她说：“牛顿坐在树下，眼睛盯着树在思考，这时，有一个苹果落在他的头上，于是他发现了万有引力定律，孩子们，你们想想看，做一位伟大的科学家多么好，多么神气啊，要想做到这一点，就必须好好学习。” </p><p>“班上一个调皮鬼对此并不满意。他说：“兴许是这样，可是，假如他坐在学校里，埋头书本，那他就什么也发现不了啦。” </p><p>女老师竭力向孩子们证明，学习好功课的重要性。 </p><p>她说：“牛顿坐在树下，眼睛盯着树在思考，这时，有一个苹果落在他的头上，于是他发现了万有引力定律，孩子们，你们想想看，做一位伟大的科学家多么好，多么神气啊，要想做到这一点，就必须好好学习。” </p><p>“班上一个调皮鬼对此并不满意。他说：“兴许是这样，可是，假如他坐在学校里，埋头书本，那他就什么也发现不了啦。” </p><p>女老师竭力向孩子们证明，学习好功课的重要性。 </p><p>她说：“牛顿坐在树下，眼睛盯着树在思考，这时，有一个苹果落在他的头上，于是他发现了万有引力定律，孩子们，你们想想看，做一位伟大的科学家多么好，多么神气啊，要想做到这一点，就必须好好学习。” </p><p>“班上一个调皮鬼对此并不满意。他说：“兴许是这样，可是，假如他坐在学校里，埋头书本，那他就什么也发现不了啦。” </p><p>女老师竭力向孩子们证明，学习好功课的重要性。 </p><p>她说：“牛顿坐在树下，眼睛盯着树在思考，这时，有一个苹果落在他的头上，于是他发现了万有引力定律，孩子们，你们想想看，做一位伟大的科学家多么好，多么神气啊，要想做到这一点，就必须好好学习。” </p><p>“班上一个调皮鬼对此并不满意。他说：“兴许是这样，可是，假如他坐在学校里，埋头书本，那他就什么也发现不了啦。” </p><p>女老师竭力向孩子们证明，学习好功课的重要性。 </p><p>她说：“牛顿坐在树下，眼睛盯着树在思考，这时，有一个苹果落在他的头上，于是他发现了万有引力定律，孩子们，你们想想看，做一位伟大的科学家多么好，多么神气啊，要想做到这一点，就必须好好学习。” </p><p>“班上一个调皮鬼对此并不满意。他说：“兴许是这样，可是，假如他坐在学校里，埋头书本，那他就什么也发现不了啦。” </p>&#34;;
function DHTMLpagenation(content) { with (this)
{
   // client static html file pagenation
   this.content=content;
   this.contentLength=content.length;
   this.pageSizeCount;
   this.perpageLength=100; //default perpage byte length.
   this.currentPage=1;
   //this.regularExp=/.+[\?\&amp;]page=(\d+)/;
   this.regularExp=/\d+/;
   this.divDisplayContent;
   this.contentStyle=null;
   this.strDisplayContent=&#34;&#34;;
   this.divDisplayPagenation;
   this.strDisplayPagenation=&#34;&#34;;
  
   arguments.length==2?perpageLength=arguments[1]:'';
   try {
     divExecuteTime=document.cr&#101;ateElement(&#34;DIV&#34;);
     document.body.appendChild(divExecuteTime);
   }
   catch(e)
   {
   }
   if(document.getElementById(&#34;divContent&#34;))
   {
     divDisplayContent=document.getElementById(&#34;divContent&#34;);
   }
   else
   {
     try
     {
       divDisplayContent=document.cr&#101;ateElement(&#34;DIV&#34;);
       divDisplayContent.id=&#34;divContent&#34;;
       document.body.appendChild(divDisplayContent);
     }
     catch(e)
     {
       return false;
     }
   }
   if(document.getElementById(&#34;divPagenation&#34;))
   {
     divDisplayPagenation=document.getElementById(&#34;divPagenation&#34;);
   }
   else
   {
     try
     {
       divDisplayPagenation=document.cr&#101;ateElement(&#34;DIV&#34;);
       divDisplayPagenation.id=&#34;divPagenation&#34;;
       document.body.appendChild(divDisplayPagenation);
     }
     catch(e)
     {
       return false;
     }
   }
   DHTMLpagenation.initialize();
   return this;
  
}};
DHTMLpagenation.initialize=function() { with (this)
{
   divDisplayContent.className=contentStyle!=null?contentStyle:&#34;divContent&#34;;
   if(contentLength<=perpageLength)
   {
     strDisplayContent=content;
     divDisplayContent.innerHTML=strDisplayContent;
     return null;
   }
   pageSizeCount=Math.ceil((contentLength/perpageLength));
   DHTMLpagenation.goto(currentPage);
   DHTMLpagenation.displayContent();
}};
DHTMLpagenation.displayPage=function() { with (this)
{
   strDisplayPagenation=&#34;分页：&#34;;
   if(currentPage&amp;&amp;currentPage!=1)
     strDisplayPagenation+='<a href=&#34;javascript:void(0)&#34; onclick=&#34;DHTMLpagenation.previous()&#34;>上一页</a>&amp;nbsp;&amp;nbsp;';
   else
     strDisplayPagenation+=&#34;上一页&amp;nbsp;&amp;nbsp;&#34;;
   for(var i=1;i<=pageSizeCount;i++)
   {
     if(i!=currentPage)
       strDisplayPagenation+='<a href=&#34;javascript:void(0)&#34; onclick=&#34;DHTMLpagenation.goto('+i+');&#34;>'+i+'</a>&amp;nbsp;&amp;nbsp;';
     else
       strDisplayPagenation+=i+&#34;&amp;nbsp;&amp;nbsp;&#34;;
   }
   if(currentPage&amp;&amp;currentPage!=pageSizeCount)
     strDisplayPagenation+='<a href=&#34;javascript:void(0)&#34; onclick=&#34;DHTMLpagenation.next()&#34;>下一页</a>&amp;nbsp;&amp;nbsp;';
   else
     strDisplayPagenation+=&#34;下一页&amp;nbsp;&amp;nbsp;&#34;;
   strDisplayPagenation+=&#34;共 &#34; + pageSizeCount + &#34; 页，每页&#34; + perpageLength + &#34; 字符，调整字符数：<input type='text' value='&#34;+perpageLength+&#34;' id='ctlPerpageLength'><input type='button' value='确定' onclick='DHTMLpagenation.change(document.getElementById(\&#34;ctlPerpageLength\&#34;).value);'>&#34;;
   divDisplayPagenation.innerHTML=strDisplayPagenation;
}};
DHTMLpagenation.previous=function() { with(this)
{
   DHTMLpagenation.goto(currentPage-1);
}};
DHTMLpagenation.next=function() { with(this)
{
   DHTMLpagenation.goto(currentPage+1);
}};
DHTMLpagenation.goto=function(iCurrentPage) { with (this)
{
   startime=new Date();
   if(regularExp.test(iCurrentPage))
   {
     currentPage=iCurrentPage;
     strDisplayContent=content.substr((currentPage-1)*perpageLength,perpageLength);
   }
   else
   {
     alert(&#34;page parameter error!&#34;);
   }
   DHTMLpagenation.displayPage();
   DHTMLpagenation.displayContent();
}};
DHTMLpagenation.displayContent=function() { with (this)
{
   divDisplayContent.innerHTML=strDisplayContent;
}};
DHTMLpagenation.change=function(iPerpageLength) { with(this)
{
   if(regularExp.test(iPerpageLength))
   {
     DHTMLpagenation.perpageLength=iPerpageLength;
     DHTMLpagenation.currentPage=1;
     DHTMLpagenation.initialize();
   }
   else
   {
     alert(&#34;请输入数字&#34;);
   }
}};
// method
// DHTMLpagenation(strContent,perpageLength)
DHTMLpagenation(s,100);
//-->
</script></TEXTAREA><br/><INPUT onclick="runEx('temp87751')"  type="button" class="userbutton" value="运行此代码"/> <INPUT onclick="doCopy('temp87751')"  type="button" class="userbutton" value="复制此代码"/> <INPUT onclick="saveCode('temp87751')" type="button" class="userbutton" value="保存此代码"><br/> [Ctrl+A 全部选择 提示：你可先修改部分代码，再按运行]</div></div>]]></description>
		</item>
		
			<item>
			<link>http://bokee.shinylife.net/blog/article.asp?id=581</link>
			<title><![CDATA[读取SQL数据库里TEXT和NTEXT类型字段内容的问题 ]]></title>
			<author>paulleder@msn.com(PaulLeder)</author>
			<category><![CDATA[ASP]]></category>
			<pubDate>Fri,20 Jul 2007 10:32:44 +0800</pubDate>
			<guid>http://bokee.shinylife.net/blog/default.asp?id=581</guid>
		<description><![CDATA[首先我们应该了解这两个类型的字段到底有什么不同:<br/>虽然看起这他们是叫TEXT,但他不是用来保存文本的,实际上是用来保存文件,和IMAGE类型一样的,一般用来保存MIME类型的数据.<br/>而我把它用来保存新闻的主体内容了,这样能存的更多.结果老是读取不出来......<br/><br/>我用的是ADO连接,在读取数据时,因为习惯了以前ASP的写法,用conn.execute()来读取,,,这种读取对存MIME类型的字段是无效的,,,<br/>所以改成rs.open的方法来读取就好了....<br/><br/>记于此,以做学习.<br/><br/>那么这两种执行方法在本质上有什么不同?在处理MIME类型上有什么不同呢?<br/>个人认为用conn.execute()方式得到的RS里对MIME类型应该只是得到了一个索引,而用rs.open()的方式得到的应该是MIME类型的内容吧!<br/>对两种方式得到的RS的字节大小做个比较应该能说明结果.<br/><br/>那么在应用时,在仅列出索引,标题什么的时,用conn.execute(). 在要显示完整内容时用rs.open(),我想这样能提高不少性能吧! <br/>]]></description>
		</item>
		
</channel>
</rss>
