<?xml version="1.0" encoding="gbk"?>
<rss version="2.0">
  <channel>
    <title>曲径通幽论坛 - ASP</title>
    <link>http://www.groad.net/bbs/forum.php?mod=forumdisplay&amp;fid=150</link>
    <description>Latest 20 threads of ASP</description>
    <copyright>Copyright(C) 曲径通幽论坛</copyright>
    <generator>Discuz! Board by Comsenz Inc.</generator>
    <lastBuildDate>Fri, 10 Apr 2026 06:50:53 +0000</lastBuildDate>
    <ttl>60</ttl>
    <image>
      <url>http://www.groad.net/bbs/static/image/common/logo_88_31.gif</url>
      <title>曲径通幽论坛</title>
      <link>http://www.groad.net/bbs/</link>
    </image>
    <item>
      <title>opentextfile 没有权限</title>
      <link>http://www.groad.net/bbs/forum.php?mod=viewthread&amp;tid=9170</link>
      <description><![CDATA[运行一个含有 opentextfile 方法的文件提示没有权限（permission denied，读写要给文本文件），一个原因可能是，该文本文件位于 NTFS 分区，因此你要在该文件的安全里添加上相应的写权限。]]></description>
      <category>ASP</category>
      <author>beyes</author>
      <pubDate>Thu, 12 May 2016 16:07:09 +0000</pubDate>
    </item>
    <item>
      <title>风声无组件上传</title>
      <link>http://www.groad.net/bbs/forum.php?mod=viewthread&amp;tid=8138</link>
      <description><![CDATA[风声无组件上传演示代码，可用来学习及搭建测试环境。

下载地址：]]></description>
      <category>ASP</category>
      <author>easy</author>
      <pubDate>Wed, 13 Nov 2013 05:31:09 +0000</pubDate>
    </item>
    <item>
      <title>SESSION 对象</title>
      <link>http://www.groad.net/bbs/forum.php?mod=viewthread&amp;tid=7710</link>
      <description><![CDATA[SESSION 与 COOKIES 相同的地方都是用来存储或跟踪用户数据，它们在整个站点的范围内都可以访问；不同的是，SESSION 存储在服务端，COOKIES 存储在客户端，修改客户端上的东西很容易，而修改服务端上的却较为困难，因此 SESSION 对于 COOKIES 而言较为安全。
 
一个常见 ...]]></description>
      <category>ASP</category>
      <author>easy</author>
      <pubDate>Mon, 08 Apr 2013 08:42:52 +0000</pubDate>
    </item>
    <item>
      <title>request, response 对象与 cookies</title>
      <link>http://www.groad.net/bbs/forum.php?mod=viewthread&amp;tid=7708</link>
      <description><![CDATA[request 和 response 对象都有相关于 cookies 的集合。
 
request 对象的 cookies 集合用来获取用户的相关信息。
 
response 对象的 cookies 集合负责将数据设置的浏览器。
 
向客户端写 cookies ：

访问该页面，不会看到任何内容。但可以用下面的代码验证一下 cookies ...]]></description>
      <category>ASP</category>
      <author>easy</author>
      <pubDate>Sat, 06 Apr 2013 13:28:23 +0000</pubDate>
    </item>
    <item>
      <title>response.redirect 方法和 response.buffer 属性的关系</title>
      <link>http://www.groad.net/bbs/forum.php?mod=viewthread&amp;tid=7707</link>
      <description><![CDATA[response.redirect 方法的作用是跳转网页，它对 response.buffer属性有依赖关系，也就是说如果要在网页中使用 redirect 方法的话，就必须将 buffer 属性设置为 true 。
 
如果将 buffer 属性设置为 false 会发生什么情况？比如运行下面的代码：

此时会看到错误提示：

 ...]]></description>
      <category>ASP</category>
      <author>easy</author>
      <pubDate>Fri, 05 Apr 2013 15:51:34 +0000</pubDate>
    </item>
    <item>
      <title>response 的 buffer 属性,clear,end,flush 方法</title>
      <link>http://www.groad.net/bbs/forum.php?mod=viewthread&amp;tid=7706</link>
      <description><![CDATA[response 对象的 buffer 用来决定页面输出是否被缓冲，它只有 2 个值，真或假；为真时，页面先被缓冲，等装载完后，再一块儿输出来；为假时，页面输出不被缓冲，即一边输出一边显示。用下面的代码可以直观的感知这个属性：

这个代码在页面上输出 1 到 100000 的数字， ...]]></description>
      <category>ASP</category>
      <author>easy</author>
      <pubDate>Fri, 05 Apr 2013 11:00:36 +0000</pubDate>
    </item>
    <item>
      <title>Request 对象中的 TotalBytes 属性</title>
      <link>http://www.groad.net/bbs/forum.php?mod=viewthread&amp;tid=7705</link>
      <description><![CDATA[TotalBytes 属性表示客户端在请求正文中发送的字节总数。
 
BinaryRead 方法检查客户端发送到服务器作为 POST 请求的一部分的数据。
 
TotalBytes 的测试代码：

显示页面：

在这里，填入的是 123456 这 6 个字符，然后点击“SUBMIT\&quot; 提交按钮，最后得到传送的字节数为 ...]]></description>
      <category>ASP</category>
      <author>easy</author>
      <pubDate>Thu, 04 Apr 2013 17:01:23 +0000</pubDate>
    </item>
    <item>
      <title>使用 Request.ServerVariables 集合获取服务器变量</title>
      <link>http://www.groad.net/bbs/forum.php?mod=viewthread&amp;tid=7703</link>
      <description><![CDATA[Request.ServerVariables() 集合可以获取服务器所有相关的变量值，当然还可以获得客户端的一些信息。
 
使用下面的代码可以获得所有的服务器变量：

在 Windows Server 2003 上，列出的结果为：

我们可以使用下面的代码输出这些变量值，比如：

其中，REMOTE_ADDR 表示 ...]]></description>
      <category>ASP</category>
      <author>easy</author>
      <pubDate>Thu, 04 Apr 2013 08:29:58 +0000</pubDate>
    </item>
    <item>
      <title>传值(byval) 与 传址(byref)</title>
      <link>http://www.groad.net/bbs/forum.php?mod=viewthread&amp;tid=7702</link>
      <description><![CDATA[在 ASP 中，给函数传递参数的方式默认是传址，而不是传值。使用下面的测试代码来说明：

输出结果：

由此可见，默认情况下就是用传址的方式来传递的。如果显示声明传址方式，那么可以使用 byref 关键字，如：function change_val( byref n ) 。在程序里是用 call 来调 ...]]></description>
      <category>ASP</category>
      <author>easy</author>
      <pubDate>Thu, 04 Apr 2013 04:19:40 +0000</pubDate>
    </item>
    <item>
      <title>自定义子程序的方法</title>
      <link>http://www.groad.net/bbs/forum.php?mod=viewthread&amp;tid=7701</link>
      <description><![CDATA[自定义子程序的方法依下面的形式：

子程序和函数的区别在于：子程序是一个没有返回值的函数。
 
测试代码：

运行结果：

在上面的程序中，使用了两种调用子程序的方法，一种是带 call 关键字的；一种是不带 call 的，不带 call 的。]]></description>
      <category>ASP</category>
      <author>easy</author>
      <pubDate>Thu, 04 Apr 2013 03:28:40 +0000</pubDate>
    </item>
    <item>
      <title>自定义函数的方法</title>
      <link>http://www.groad.net/bbs/forum.php?mod=viewthread&amp;tid=7700</link>
      <description><![CDATA[自定义一个函数使用下面的形式：

 
示例代码：

运行结果：2 + 5 = 7]]></description>
      <category>ASP</category>
      <author>easy</author>
      <pubDate>Thu, 04 Apr 2013 03:02:17 +0000</pubDate>
    </item>
    <item>
      <title>使用服务器端脚本与客户端脚本</title>
      <link>http://www.groad.net/bbs/forum.php?mod=viewthread&amp;tid=7699</link>
      <description><![CDATA[像 msgbox() 这样直接与浏览者交互的 vbscript 函数是不能在服务器段运行的，而是需要在客户端运行的。因此，就分有服务器端脚本和客户端脚本的区别。
 
服务器端脚本使用  括起来，而客户端脚本则使用下面的形式括起来：

 
示例代码：]]></description>
      <category>ASP</category>
      <author>easy</author>
      <pubDate>Thu, 04 Apr 2013 01:54:14 +0000</pubDate>
    </item>
    <item>
      <title>使用 request.QueryString() 获取地址栏参数(GET)</title>
      <link>http://www.groad.net/bbs/forum.php?mod=viewthread&amp;tid=7698</link>
      <description><![CDATA[request.form()  是获取 POST 过来数据的集合。如果是 GET 方法传递的数据（通俗的讲，GET 方法所传递的数据就是网址上的参数和值，比如 http://www.groad.net/fid.asp?page=1&amp;news=129，其中 page=1&amp;news=129 就是 GET 方法所传递的数据），那么就要用 request.QuerySt ...]]></description>
      <category>ASP</category>
      <author>easy</author>
      <pubDate>Wed, 03 Apr 2013 13:05:24 +0000</pubDate>
    </item>
    <item>
      <title>使用 request.form 获取用户的表单输入(POST)</title>
      <link>http://www.groad.net/bbs/forum.php?mod=viewthread&amp;tid=7696</link>
      <description><![CDATA[request.form 可用来获取用户的表单输入。
 
测试代码：

页面效果：

输入 hello world 测试：

 
上面，给 request.form() 传递的参数是表单（这里是文本框）的名字，当然可以使用  的其它类型，如密码框。]]></description>
      <category>ASP</category>
      <author>easy</author>
      <pubDate>Wed, 03 Apr 2013 04:00:17 +0000</pubDate>
    </item>
    <item>
      <title>解决 ASP 乱码的两点注意</title>
      <link>http://www.groad.net/bbs/forum.php?mod=viewthread&amp;tid=7695</link>
      <description><![CDATA[一般情况下，会见到如下解决方案：

UTF-8编码的话：在ASP脚本顶部加入 

以及再在区域中加入：


如果是 GB2312 编码的话：在ASP脚本顶部加入 

以及再在区域中加入：


如果输出语句为乱码，那么可以添加：


我在用 gb2312 时，中文乱码；但是改用 utf-8 时，却正常 ...]]></description>
      <category>ASP</category>
      <author>easy</author>
      <pubDate>Tue, 02 Apr 2013 15:30:50 +0000</pubDate>
    </item>
    <item>
      <title>用 for each 来遍历数组/集合</title>
      <link>http://www.groad.net/bbs/forum.php?mod=viewthread&amp;tid=7694</link>
      <description><![CDATA[用 for each 来遍历数组的格式为：


测试代码：
[mw_shl_code=text,true]]]></description>
      <category>ASP</category>
      <author>easy</author>
      <pubDate>Tue, 02 Apr 2013 12:37:37 +0000</pubDate>
    </item>
    <item>
      <title>for..next, while..wend 与 do 循环</title>
      <link>http://www.groad.net/bbs/forum.php?mod=viewthread&amp;tid=7693</link>
      <description><![CDATA[for next 循环的格式为：

测试代码：

输出结果：


上面的循环，变量 i 在每次的循环后增加 1 ，也就是说其步进为 1。如果步进要为其它的值，那么就要用 step 关键字来说明。比如将上面的 for 语句改为 for i = 0 to 8 step ...]]></description>
      <category>ASP</category>
      <author>easy</author>
      <pubDate>Tue, 02 Apr 2013 12:19:49 +0000</pubDate>
    </item>
    <item>
      <title>select case 多分支语句</title>
      <link>http://www.groad.net/bbs/forum.php?mod=viewthread&amp;tid=7692</link>
      <description><![CDATA[select case 多分支语句的基本格式为：

一个真实的例子：


action 变量是用户所做的点击动作，然后通过 select case 进行对号入座的判断，若是发生匹配，则重定向到(Response.Redirect())到相应的页面去处理。如果没有一个选项匹配，那么会有操作错误的提示。]]></description>
      <category>ASP</category>
      <author>easy</author>
      <pubDate>Tue, 02 Apr 2013 10:09:05 +0000</pubDate>
    </item>
    <item>
      <title>if..else 语句</title>
      <link>http://www.groad.net/bbs/forum.php?mod=viewthread&amp;tid=7691</link>
      <description><![CDATA[if 语句使用示例：

输出：今天没有促销信息 。

可以使用 if not ：

输出：今天有促销信息。

使用 elseif ：

输出：今天有促销信息。

注意：if 和 elseif 后面的 then 不要漏掉。]]></description>
      <category>ASP</category>
      <author>easy</author>
      <pubDate>Tue, 02 Apr 2013 09:45:01 +0000</pubDate>
    </item>
    <item>
      <title>日期表示法</title>
      <link>http://www.groad.net/bbs/forum.php?mod=viewthread&amp;tid=7690</link>
      <description><![CDATA[日期表达式需要用 # 括起来，比如：

运行后的输出值为：2013-4-12 。]]></description>
      <category>ASP</category>
      <author>easy</author>
      <pubDate>Tue, 02 Apr 2013 09:11:53 +0000</pubDate>
    </item>
  </channel>
</rss>