<?xml version="1.0" encoding="utf-8" ?>
<rss version="2.0">
<channel>
<title>深山工作室 https://www.qwbm.com【ASP】</title>
<link>https://www.qwbm.com/news.asp?id=55</link>
<description>ASP https://www.qwbm.com</description>
<category>ASP</category>
<language>zh-cn</language>
<docs>https://www.qwbm.com/rss.asp</docs>
<generator>https://www.qwbm.com</generator>
<webMaster>565449214@qq.com</webMaster>
<managingEditor>565449214@qq.com</managingEditor>
<pubDate>2007-11-21 下午 23:11:35</pubDate>
<lastBuildDate>2026/4/29 16:32:02</lastBuildDate>
<ttl>20</ttl> 
<copyright>Copyright 2026 深山工作室 https://www.qwbm.com</copyright>
<item>
<guid>2349</guid>
<title>ASP中Utf-8与Gb2312编码转换乱码问题的解决方法页面编码声明</title>
<link>https://www.qwbm.com/new.asp?id=2349</link>
<description><![CDATA[ASP程序在同一个站点中,如果有UTF-8编码的程序，又有GB2312编码的程序时，在浏览UTF-8编码的页面后，再浏览当前网站GB2312的页面，GB2312编码的页面就会出现乱码
出现这样的问题是当你浏览UTF-8编码的时候，服务器默认用UTF-8的引擎来输出html，当你用再浏览GB2312的页面时，它还是用UTF-8来输出本应是GB2312编码的页面所以会乱码。 

首先让我们来了解一下Session对象提供了四个属性。
1.CodePage 读/写。整型。
定义用于在浏览器中显示页内容的代码页（Code Page）。代码页是字符集的数字值，不同的语言和场所可能使用不同的代码页。例如，ANSI代码页 1252用于美国英语和大多数欧洲语言。代码页932用于日文字。（这里我们要用到的就是这个属性）
2.LCID 读/写。整型。
定义发送给浏览器的页面地区标识（LCID）。LCID是唯一地标识地区的一个国际标准缩写，例如，2057定义当前地区的货币符号是'￡'。LCID也可用于FormatCurrency等语句中，只要其中有一个可选的LCID参数。LCID也可在ASP处]]></description>
<author></author>
<source>https://www.qwbm.com/new.asp?id=2349</source>
<category>ASP</category>
<pubDate>2023/2/22 10:21:11</pubDate>
</item>
<item>
<guid>1312</guid>
<title>asp显示随机密码</title>
<link>https://www.qwbm.com/new.asp?id=1312</link>
<description><![CDATA['随机显示密码
function ranpassword(ps_len,xml)
strstring = "abcdefghijklmnopqrstuvwxyzABCEDFGHIJKLMNOPQRSTUVWXYZ1234567890"
randomize timer
dim i,a
ranpassword=""
password_length = 16
if ps_len&lt;&gt;"" and ps_len&lt;&gt;"0" then
password_length=clng(ps_len)
end if
for i=1 to password_length
a=int(rnd*(len(strstring)))+1
ranpassword=ranpassword+mid(strstring,a,1)
next
end function

]]></description>
<author></author>
<source>https://www.qwbm.com/new.asp?id=1312</source>
<category>ASP</category>
<pubDate>2022/7/25 14:38:20</pubDate>
</item>
<item>
<guid>1311</guid>
<title>通过阿里云服务接口获得ip地址详细信息</title>
<link>https://www.qwbm.com/new.asp?id=1311</link>
<description><![CDATA[Dim ip,datatype,token,url


Function BytesToBstr(strBody,CodeBase)
dim objStream
set objStream = Server.CreateObject("Adodb.Stream")
objStream.Type = 1
objStream.Mode =3
objStream.Open
objStream.Write strBody
objStream.Position = 0
objStream.Type = 2
objStream.Charset = CodeBase
BytesToBstr = objStream.ReadText 
objStream.Close
set objStream = nothing
End Function

'Get内容
Function geturl_diy(url,d_biaoqian,xml2)
dim http
set http=server.createobject("Msxml2.ServerXMLHTTP")
]]></description>
<author></author>
<source>https://www.qwbm.com/new.asp?id=1311</source>
<category>ASP</category>
<pubDate>2022/7/25 9:17:54</pubDate>
</item>
<item>
<guid>1308</guid>
<title>iis点开后任务栏上有显示，但是窗口看不到的解决办法</title>
<link>https://www.qwbm.com/new.asp?id=1308</link>
<description><![CDATA[启动【IIS管理器】后，在任务栏中有，但是窗口不见了。

尝试在【设置=》控制面板=》程序=》程序和功能】重新安装IIS相关组件，重启电脑后还是没解决。

网上查了一下，找到解决办法：开始=》运行命令=》输入：inetmgr.exe /reset

搞定！！
原因：由于某种原因，之前该窗口的位置被改动过，显示在我们显示器之外的地方，所以我们看不见它。这个命令把它的设置还原了。
]]></description>
<author></author>
<source>https://www.qwbm.com/new.asp?id=1308</source>
<category>ASP</category>
<pubDate>2022/6/18 8:55:51</pubDate>
</item>
<item>
<guid>1303</guid>
<title>RSA加密解密插件</title>
<link>https://www.qwbm.com/new.asp?id=1303</link>
<description><![CDATA[

&lt;%
''........................................
'' RSA插件
'' author Flc 2021-02-02
'' Version v1.0
''........................................


&nbsp;&nbsp;&nbsp; Public Publickey, Privatekey
&nbsp;&nbsp;&nbsp; Private SB, Rsa
&nbsp;&nbsp;&nbsp; Private s_B, s_R, s_U

&nbsp;&nbsp;&nbsp; Private Sub Class_Initialize()
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set SB = App.Str.StringBuilder()
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set Rsa = Server.CreateObject("System.Securi]]></description>
<author></author>
<source>https://www.qwbm.com/new.asp?id=1303</source>
<category>ASP</category>
<pubDate>2022/6/3 15:55:10</pubDate>
</item>
<item>
<guid>1302</guid>
<title>微软Encoder加密解密函数</title>
<link>https://www.qwbm.com/new.asp?id=1302</link>
<description><![CDATA[

&lt;%
&nbsp; ''微软Encoder加密解密
&nbsp; ''暂时只支持中文，英文，其他语言未测试
&nbsp; ''Author:amuie@126.com

Private Ary, En, SB, StrStartFlag, StrEndFlag

Private Sub Class_Initialize()
&nbsp;&nbsp;&nbsp; Set En = Server.CreateObject("Scripting.Encoder")
&nbsp;&nbsp;&nbsp; Set SB = App.Str.StringBuilder()
StrStartFlag = App.Str.RegexpEncode("#@~^")
&nbsp; 	StrEndFlag = App.Str.RegexpEncode("==^#~@")
Ary = Array( _
&nbsp;&nbsp;&nbsp; 	&amp;h00, &amp;h00, &amp;h00, &amp;h01, &amp;h01, &amp;h01, &amp;]]></description>
<author></author>
<source>https://www.qwbm.com/new.asp?id=1302</source>
<category>ASP</category>
<pubDate>2022/6/3 15:52:32</pubDate>
</item>
<item>
<guid>910</guid>
<title>asp无限级调用分类显示</title>
<link>https://www.qwbm.com/new.asp?id=910</link>
<description><![CDATA[点击下载示例压缩包：ASPsnakDemo.rar



&lt;%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%&gt;
&lt;!doctype html&gt;
&lt;html&gt;
&lt;head&gt;
&lt;meta charset="utf-8"&gt;
&lt;title&gt;asp无限级调用分类&lt;/title&gt;
&lt;style&gt;
.class1{color:#FD0509; font-size:16px;}
.class2{color:#3B02FB; font-size:14px;}
.class3{color:#54FB05; font-size:14px;}

&lt;/style&gt;
&lt;/head&gt;

&lt;body&gt;
&lt;%
dim startime,cn,connstr,db
startime=timer()
db="db.mdb" '数据库
'on error resume next '尝试连数据库，一直到超时，但可以加]]></description>
<author></author>
<source>https://www.qwbm.com/new.asp?id=910</source>
<category>ASP</category>
<pubDate>2020/11/20 21:47:17</pubDate>
</item>
<item>
<guid>867</guid>
<title>实现iis6与iis7环境下支持mp4视频随意拖动、预览播放、边下载边播放</title>
<link>https://www.qwbm.com/new.asp?id=867</link>
<description><![CDATA[前几天，一客户需要在IIS环境下实现MP4视频可以随意拖动观看，边下载边播放。一看这要求，IIS本身是无法实现，想着应该需要用插件，于是GG一番，刚真找到这样的插件，此组件为H264-Streaming-Module ISAPI extension for IIS。

　　IIS6版本下载地址：http://h264.code-shop.com/download/iis5_mod_h264_streaming-2.2.0.zip

　　IIS7版本下载地址：http://h264.code-shop.com/download/iis7_mod_h264_streaming-2.2.7.zip

IIS6下安装步骤如下：

　　1、下载对应版本的mod_h264_streaming，把mod_h264_streaming.dll解压到一个目录，如：E:\h264\mod_h264_streaming.dll

　　2、请配置该文件所在目录权限为：Administrator/完全控制；SYSTEM/完全控制；USER/读取和运行（这个权限很重要，不然IIS无法加载这个组]]></description>
<author></author>
<source>https://www.qwbm.com/new.asp?id=867</source>
<category>ASP</category>
<pubDate>2019/12/17 14:22:25</pubDate>
</item>
<item>
<guid>861</guid>
<title>做好的网站把http改成https申请SSL域名证书</title>
<link>https://www.qwbm.com/new.asp?id=861</link>
<description><![CDATA[第一步：去注册域名
第二步：目前我只使用两个网站的免费证书
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1.阿里云 https://www.aliyun.com/
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2.腾讯云 https://cloud.tencent.com/

阿里云平台操作说明(阿里云 https://www.aliyun.com/)
1. 在阿里云产品中心搜索【ssl证书】

2. 点击立即开通

3. 申请开通，点击购买，支付，

4. 提交要申请的证书信息（一定要填写域名证密码---这个在后期时候特别有用）

5. 申请好证书之后，需要对域名进行txt别名解析。
6. 解析好之后就可以下载对应的证书（如果你不是用阿里云的服务器就点击下载（下载的时候选择对应的版本类型，如果是IIS就选择IIS），如果你使用的是阿里云的云服务器，可以点击部署就行了，就更方便了。）

7. 将下载好的IIS证书解压开，到服务器端
8. 进入IIS ---- 服务器证书]]></description>
<author></author>
<source>https://www.qwbm.com/new.asp?id=861</source>
<category>ASP</category>
<pubDate>2019/10/9 11:04:17</pubDate>
</item>
<item>
<guid>859</guid>
<title>纯asp根据当前日期计算出当前年份的属相</title>
<link>https://www.qwbm.com/new.asp?id=859</link>
<description><![CDATA[
以下是asp根据当前日期的年份计算出相应年份的属相，以上是演示效果

&lt;%
curTime = Now()
curYear = Year(curTime)

function ren_shuxiang(s_year)
sx_year = (((curYear - 4) Mod 60) Mod 12)
select case sx_year
case 0:	sx_show="鼠"
case 1:	sx_show="牛"
case 2:	sx_show="虎"
case 3:	sx_show="兔"
case 4:	sx_show="龙"
case 5:	sx_show="蛇"
case 6:	sx_show="马"
case 7:	sx_show="羊"
case 8:	sx_show="猴"
case 9:	sx_show="鸡"
case 10:sx_show="狗"
case 11:sx_show="猪"
end select
ren_shuxiang = sx_show
end function

response.wr]]></description>
<author>深山工作室</author>
<source>https://www.qwbm.com/new.asp?id=859</source>
<category>ASP</category>
<pubDate>2019/9/18 22:33:05</pubDate>
</item>
<item>
<guid>858</guid>
<title>sql server中前缀为PK、UK、DF、CK、FK表的意思</title>
<link>https://www.qwbm.com/new.asp?id=858</link>
<description><![CDATA[PK 主键
constraint primary key

UK 唯一约束
constraint unique key

DF 约束默认
constrint default for

CK 检查约束
constraint check()

FK 主外键关系
constraint foreign references]]></description>
<author></author>
<source>https://www.qwbm.com/new.asp?id=858</source>
<category>ASP</category>
<pubDate>2019/5/30 11:15:02</pubDate>
</item>
<item>
<guid>856</guid>
<title>ASP利用fso读取文件夹里所有文件的名字</title>
<link>https://www.qwbm.com/new.asp?id=856</link>
<description><![CDATA[&lt;%
set fs=CreateObject("Scripting.FileSystemObject")
set f=fs.GetFolder(Server.MapPath("UploadFiles"))	'文件夹的名称
set fc=f.Files
for each f1 in fc
response.write f1.name
response.write "&lt;br&gt;"
next
%&gt;]]></description>
<author>深山工作室</author>
<source>https://www.qwbm.com/new.asp?id=856</source>
<category>ASP</category>
<pubDate>2019/5/2 21:47:46</pubDate>
</item>
<item>
<guid>854</guid>
<title>asp实现获得当前文章的上一篇信息与下一篇信息功能及代码</title>
<link>https://www.qwbm.com/new.asp?id=854</link>
<description><![CDATA[按文章ID排序获取当前信息的上一篇信息与下一篇信息获得上一篇信息&lt;%sql="select top 1 [id],[标题] from [数据表名] where [id]&lt;" &amp; 当前文章id &amp; " order by id desc"set rs=conn.execute(sql) 'conn为打开数据库变量if rs.eof then	response.write("上一篇文章：没有了&lt;br /&gt;")else	response.write("上一篇文章：&lt;a href='?id=" &amp; rs(0) &amp; "'&gt;" &amp; rs(1) &amp; "&lt;/a&gt;&lt;br /&gt;")end ifrs.closeset rs=nothing%&gt;获得下一篇信息&lt;%sql="select top 1 [id],[标题] from [数据表名] where [id]&gt;" &amp; 当前文章id &amp; " order by id asc"set rs=conn.execute(sql) ]]></description>
<author></author>
<source>https://www.qwbm.com/new.asp?id=854</source>
<category>ASP</category>
<pubDate>2019/4/16 14:40:46</pubDate>
</item>
<item>
<guid>853</guid>
<title>asp导出内容到excel表并自定义命名后下载（非打开）</title>
<link>https://www.qwbm.com/new.asp?id=853</link>
<description><![CDATA[本ASP程序代码实现两个功能：1、将指定的数据库内容导出到EXCEL表格（可改为其它格式）。2、任何类型的文件都是直接下载，不是在浏览器打开，并且自定义另存为对话框里的默认文件名。完整代码如下：&lt;%dim actionaction=lcase(trim(request.querystring("action")))if action="down" then '下载文件&nbsp;&nbsp;&nbsp; '任何类型的文件都是直接下载，不是在浏览器打开，且自定义另存为对话框里的默认文件名。&nbsp;&nbsp;&nbsp; call gw_downfile(trim(request.querystring("f")),"文章列表.xls") '参数：服务器端文件路径及文件名，客户端下载时的默认文件名else '导出文件&nbsp;&nbsp;&nbsp; '将指定的数据库内容导出到EXCEL表格（可改为其它格式）&nbsp;&nbsp;&nbsp; const filename="news.xls" '导出后的文件名（全名，带.扩展名）&nbsp;&nbsp;&nbsp; dim]]></description>
<author>深山工作室</author>
<source>https://www.qwbm.com/new.asp?id=853</source>
<category>ASP</category>
<pubDate>2019/4/16 14:29:04</pubDate>
</item>
<item>
<guid>852</guid>
<title>'禁止站外提交页面和数据</title>
<link>https://www.qwbm.com/new.asp?id=852</link>
<description><![CDATA[&lt;%
call waizhan_addform()

'禁止站外提交页面和数据
sub waizhan_addform()
&nbsp;&nbsp;&nbsp; dim this_page_url : this_page_url=cstr(request.servervariables("HTTP_REFERER")) '获取前一个页面的全URL
&nbsp;&nbsp;&nbsp; dim this_page_yuming : this_page_yuming=cstr(request.servervariables("SERVER_NAME")) '获取当前页面所在服务器域名
&nbsp;&nbsp;&nbsp; 'response.write("前一个页面的全URL：" &amp; this_page_url &amp; "&lt;br /&gt;")
&nbsp;&nbsp;&nbsp; 'response.write("当前页面所在服务器IP：" &amp; this_page_yuming &amp; "&lt;br /&gt;")
&nbsp;&n]]></description>
<author>深山工作室</author>
<source>https://www.qwbm.com/new.asp?id=852</source>
<category>ASP</category>
<pubDate>2019/4/16 11:31:00</pubDate>
</item>
<item>
<guid>851</guid>
<title>asp将中文汉字字符转为unicode编码(\u编码)与把unicode编码转为汉字</title>
<link>https://www.qwbm.com/new.asp?id=851</link>
<description><![CDATA[&lt;%dim zhuan_textzhuan_text = "深山工作室"%&gt;要转换的内容：&lt;%=zhuan_text%&gt;&lt;br /&gt;转换之后的代码：&lt;%=tounicode(zhuan_text)%&gt;&lt;br /&gt;转码之后的文字：&lt;%=unicodeto("\\u6df1\u5c71\u5de5\u4f5c\u5ba4")%&gt;&lt;br /&gt;&lt;%function tounicode(str) '中文转unicode&nbsp;&nbsp;&nbsp; tounicode=""&nbsp;&nbsp;&nbsp; dim i&nbsp;&nbsp;&nbsp; for i=1 to len(str)&nbsp;&nbsp;&nbsp; 'asc函数：返回字符串的第一个字母对应的ANSI字符代码&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'AscW函数：返回每一个GB编码文字的Unicode字符代码&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs]]></description>
<author>深山行者</author>
<source>https://www.qwbm.com/new.asp?id=851</source>
<category>ASP</category>
<pubDate>2019/4/16 11:19:50</pubDate>
</item>
<item>
<guid>850</guid>
<title>asp中qequest读取优先级顺序（通过优化之后提高速度）</title>
<link>https://www.qwbm.com/new.asp?id=850</link>
<description><![CDATA[在ASP中，Request("")是一个复合功能读取函数，它的优先级顺序为：（↓）1、QueryString：即 Request.QueryString("")（↓）2、Form：即 Request.Form("")（↓）3、Cookies：即 Request.Cookies("")（↓）4、ServerVariables：即 Request.ServerVariables("")Request("")特点：1、它将从上到下按顺序获取内容，当前面内容不为空时则停止往下获取。2、最多做出4个尝试，只有四个尝试都失败，才返回空。3、执行效率差，建议使用唯一获取方式，如表单POST提交的就用Request.Form("")获取。]]></description>
<author></author>
<source>https://www.qwbm.com/new.asp?id=850</source>
<category>ASP</category>
<pubDate>2019/4/15 22:32:46</pubDate>
</item>
<item>
<guid>849</guid>
<title>asp计算页面执行时间显示到毫秒</title>
<link>https://www.qwbm.com/new.asp?id=849</link>
<description><![CDATA[当前asp页面执行完毕所用的时间

操作如下：
&lt;%
'timer函数：返回午夜12时以后已经过去的秒数
dim page_start_time
page_start_time = timer()
%&gt;

以上代码一定要在页面顶部加上

在网页的底部位置再获取当前过去的秒数，并减去开始的秒数，且格式化输出。


页面执行时间：&lt;%page_end_time=timer()
response.write FormatNumber((page_end_time-page_start_time)*1000,3)%&gt;毫秒]]></description>
<author></author>
<source>https://www.qwbm.com/new.asp?id=849</source>
<category>ASP</category>
<pubDate>2019/4/15 22:07:57</pubDate>
</item>
<item>
<guid>846</guid>
<title>批量删除access字段里面fld.Properties.Delete</title>
<link>https://www.qwbm.com/new.asp?id=846</link>
<description><![CDATA[access数据库中，在设计数据库的时候，会对应的字段添加相应的字段开发说明

但是上线之后我们就要删除这些开发字段说明，需要批量的删除

（PS：这些开发字段说明可以不删除，也可以删除）

单独删除某个字段“说明”属性用：
CurrentDb.TableDefs("表名称").Fields("字段名").Properties.Delete "Description"



批量删除所有字段“说明”属性用：

Sub RemoveAllFieldDescription()
&nbsp;&nbsp;&nbsp; On Error Resume Next
&nbsp;&nbsp;&nbsp; Dim dbs As DAO.Database
&nbsp;&nbsp;&nbsp; Dim tdf As DAO.TableDef
&nbsp;&nbsp;&nbsp; Dim fld As DAO.Field
&nbsp;&nbsp;&nbsp; 
&nbsp;&nbsp;&nbsp; Set dbs = CurrentDb
&nbsp;&nbsp;&nbs]]></description>
<author></author>
<source>https://www.qwbm.com/new.asp?id=846</source>
<category>ASP</category>
<pubDate>2018/6/21 17:40:27</pubDate>
</item>
<item>
<guid>845</guid>
<title>ASP操作access或sqlserver数据库的函数库</title>
<link>https://www.qwbm.com/new.asp?id=845</link>
<description><![CDATA[&lt;%'*======================================'* 名称：useDb.asp'* 功能：数据库操作函数库'* 作者：intereye'* 信箱：inteye@163.com'* 主页：http://www.inteye.net'* BLOG：http://blog.csdn.net/intereye'*======================================'* 函数：openDb(dbType,dbUser,dbPass,dbName,dbServer,dbPath)'* 功能：打开数据库连接'* 参数：dbType-&gt;数据库类型 MDB ACCESS数据库 || SQLSERVER SQLSERVER数据库'* 参数：dbUser-&gt;访问数据库用户名'* 参数：dbPass-&gt;访问数据库密码'* 参数：dbName-&gt;数据库名称'* 参数：dbServer-&gt;数据库Host'* 参数：dbPath-&gt;数据库路径Function openDb(dbType,dbUser,dbPass,]]></description>
<author></author>
<source>https://www.qwbm.com/new.asp?id=845</source>
<category>ASP</category>
<pubDate>2018/6/21 17:35:47</pubDate>
</item>
<item>
<guid>843</guid>
<title>asp中求两个数的百分比（利用百分比函数FormatPercent就可以自带%的符号）</title>
<link>https://www.qwbm.com/new.asp?id=843</link>
<description><![CDATA[FormatPercent 函数返回表达式，此表达式已被格式化为尾随有 % 符号的百分比（乘以 100 ）。FormatPercent(expression[,NumDigitsAfterDecimal [,IncludeLeadingDigit [,UseParensForNegativeNumbers [,GroupDigits]]]])FormatPercent 函数的语法有以下参数：参数Expression必选项。要被格式化的表达式。NumDigitsAfterDecimal可选项。指示小数点右侧显示位数的数值。默认值为 -1，指示使用的是计算机的区域设置。IncludeLeadingDigit可选项。三态常数，指示是否显示小数值小数点前面的零。有关数值，请参阅“设置”部分。UseParensForNegativeNumbers可选项。三态常数，指示是否将负值置于括号中。有关数值，请参阅“设置”部分。 GroupDigits可选项。三态常数，指示是否使用计算机区域设置中指定的数字分组符号将数字分组。有关数值，请参阅“设置”部分。设置IncludeLeadingDigit、Use]]></description>
<author>深山工作室</author>
<source>https://www.qwbm.com/new.asp?id=843</source>
<category>ASP</category>
<pubDate>2018/5/28 17:01:29</pubDate>
</item>
<item>
<guid>842</guid>
<title>asp利用sql操作数据表、数据库的一些方法</title>
<link>https://www.qwbm.com/new.asp?id=842</link>
<description><![CDATA[数据处理语言
#####################################
(1) 数据记录筛选： 
=====================================
sql="select * from 数据表 where 字段名=字段值 order by 字段名 [asc/desc]" 
sql="select * from 数据表 where 字段名 like ''%字段值%'' order by 字段名 [asc/desc]" 
sql="select top 10 * from 数据表 where 字段名 order by 字段名 [asc/desc]" 
sql="select * from 数据表 where 字段名 in (''值1'',''值2'',''值3'')" 
sql="select * from 数据表 where 字段名 between 值1 and 值2"

(2) 更新数据记录： 
=====================================
sql="update 数据表 set 字段名=]]></description>
<author>深山工作室</author>
<source>https://www.qwbm.com/new.asp?id=842</source>
<category>ASP</category>
<pubDate>2018/5/25 11:39:48</pubDate>
</item>
<item>
<guid>841</guid>
<title>rs操作数据表记录集对象的方法</title>
<link>https://www.qwbm.com/new.asp?id=841</link>
<description><![CDATA[记录集对象的方法：

rs.movenext 将记录指针从当前的位置向下移一行
rs.moveprevious 将记录指针从当前的位置向上移一行
rs.movefirst 将记录指针移到数据表第一行
rs.movelast 将记录指针移到数据表最后一行
rs.absoluteposition=N 将记录指针移到数据表第N行
rs.absolutepage=N 将记录指针移到第N页的第一行
rs.pagesize=N 设置每页为N条记录
rs.pagecount 根据 pagesize 的设置返回总页数
rs.recordcount 返回记录总数
rs.bof 返回记录指针是否超出数据表首端，true表示是，false为否
rs.eof 返回记录指针是否超出数据表末端，true表示是，false为否
rs.delete 删除当前记录，但记录指针不会向下移动
rs.addnew 添加记录到数据表末端
rs.update 更新数据表记录]]></description>
<author>深山工作室</author>
<source>https://www.qwbm.com/new.asp?id=841</source>
<category>ASP</category>
<pubDate>2018/5/25 11:35:48</pubDate>
</item>
<item>
<guid>838</guid>
<title>[转载]中国行政区划数据（省市区街道）</title>
<link>https://www.qwbm.com/new.asp?id=838</link>
<description><![CDATA[中国行政区划数据（省市区街道）来源网址：https://www.v2ex.com/t/301610?p=1中国行政区划数据库项目： https://github.com/mumuy/data_locationjQuery 插件项目（包含城市联动插件）： https://github.com/mumuy/widget城市多级联动演示： http://jquerywidget.com/jquery-citys/]]></description>
<author></author>
<source>https://www.qwbm.com/new.asp?id=838</source>
<category>ASP</category>
<pubDate>2018/5/14 10:48:03</pubDate>
</item>
<item>
<guid>837</guid>
<title>ASP版通过身份证信息获取对应的生日性别年龄</title>
<link>https://www.qwbm.com/new.asp?id=837</link>
<description><![CDATA[
&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
&lt;head&gt;
&lt;meta http-equiv="Content-Type" content="text/html; charset=gb2312" /&gt;
&lt;title&gt;通过身份证识别生日和性别、年龄&lt;/title&gt;
&lt;/head&gt;

&lt;%
'位数判断
Sno=request("Sno")

If Len(Sno)="15" Then
mm="15"
xxx=Right(Sno,1)
End If
If Len(Sno)="18" Then
mm="18"
yyy=Right(Sno, 2)
xxx=Left(yyy, 1)
End If
'性别判断
If xxx Mod 2=0 Then
nn="女"'女
Else If xxx Mod 2=1 Then
nn="男"'男
End If End if

Dim a, b, c, d, e
a = Sno
'新身份]]></description>
<author>深山工作室</author>
<source>https://www.qwbm.com/new.asp?id=837</source>
<category>ASP</category>
<pubDate>2018/5/14 10:35:46</pubDate>
</item>
<item>
<guid>835</guid>
<title>ASP网站打开特别卡 提示：msxml3.dll 错误 '80072ee2' /LM/W3SVC/670931603/Root/global.asa解决办法</title>
<link>https://www.qwbm.com/new.asp?id=835</link>
<description><![CDATA[ASP网站打开特别的卡，特别的慢
ping通，网址也正常

最后提示：
msxml3.dll 错误 '80072ee2'

A connection with the server could not be established

/LM/W3SVC/670931603/Root/global.asa，行 15

最后打开网站，发现根目录多了一个global.asa
如果你是自己的服务器，发现网站根目录没有global.asa，请将文件设置为显示隐藏的文件就可以找到了。]]></description>
<author>深山工作室</author>
<source>https://www.qwbm.com/new.asp?id=835</source>
<category>ASP</category>
<pubDate>2018/5/9 10:29:10</pubDate>
</item>
<item>
<guid>834</guid>
<title>asp中Request.ServerVariables能获取的信息整理总结</title>
<link>https://www.qwbm.com/new.asp?id=834</link>
<description><![CDATA[Request.ServerVariables("REMOTE_ADDR")&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '获取访问IPRequest.ServerVariables("LOCAL_ADDR")&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '同上Request.ServerVariables("SERVER_NAME") '获取服务器IPRequest.ServerVariables("HTTP_REFERER")&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '获取访问来源页面Request.ServerVariables("OS")&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;]]></description>
<author>深山工作室</author>
<source>https://www.qwbm.com/new.asp?id=834</source>
<category>ASP</category>
<pubDate>2018/4/16 10:27:32</pubDate>
</item>
<item>
<guid>832</guid>
<title>sql语句中怎么按照in语句里的id原有的顺序进行排序输出,可以做成浏览记录、查看、观看记录</title>
<link>https://www.qwbm.com/new.asp?id=832</link>
<description><![CDATA[
有时候在制作一个查看浏览记录的时候的时候，因为用户不是按照顺序去查看的，所以需要对SQL语句进行一些处理
sql语句中怎么按照in语句里的id原有的顺序进行排序输出
可以做成浏览记录、查看、观看记录，视频浏览记录、商品浏览记录

有时候我们需要按照in条件里的id顺序输出结果，可sql语句在不加order by的时候是按照asc排序的，下边的sql解决按照in条件顺序的id输出查询结果


Access:(测试可以使用)
select * From 表 Where id in(2,9,4,3,6,8,1,7,5) order by instr(',2,9,4,3,6,8,1,7,5,',','&amp;id&amp;',')

MSSQL:（测试可以使用）
select * From 表 Where id in(2,9,4,3,6,8,1,7,5) order by charindex(','+rtrim(cast(id as varchar(10)))+',',',2,9,4,3,6,8,1,7,5,')

MySQL:
select * From 表]]></description>
<author>深山工作室</author>
<source>https://www.qwbm.com/new.asp?id=832</source>
<category>ASP</category>
<pubDate>2018/4/13 15:17:02</pubDate>
</item>
<item>
<guid>831</guid>
<title>通过设置iis的进程池让网站的并发数，性能提升几个档次</title>
<link>https://www.qwbm.com/new.asp?id=831</link>
<description><![CDATA[学会调优iis，让网站性能提升，速度更快，应对多更的访问浏览。IIS应用程序池多工作进程设置1&nbsp;概述	微软的IIS通过应用程序池工作进程数量的设置，可以支持从几十到上万并发数量的访问。2&nbsp;应用程序池多工作进程设置	每个应用程序池的单一工作进程，能够大约承受30-50个左右的并发，如果超出此并发数量，可能会出现IIS无法响应、或响应时间明显变长的问题。通过合理设置应用程序池的最大工作进程数，可显著提高IIS应对高并发的能力，减少网站响应时间。2.1&nbsp;设置步骤	1、&nbsp;找到要设置的网站对应的应用程序池：	2、&nbsp;在所选应用程序池上点击右键，选择【高级设置】：	3、&nbsp;在弹出的【高级设置】窗口中向下拉找到【最大工作进程数】，并设置为合理值：	4、&nbsp;点击【确定】按纽保存设置。2.2&nbsp;注意事项1、&nbsp;最大工作进程数值的设置依据	在确定每个应用程序池的最大工作进程数时，最主要参考的数据包括网站的最大并发用户数以及WEB服务器的可用内存数。最大并发用户数需要通过一段时间的观察，记录下在系统忙时的最大并发用户数，按照每工]]></description>
<author>深山工作室</author>
<source>https://www.qwbm.com/new.asp?id=831</source>
<category>ASP</category>
<pubDate>2018/4/10 11:59:10</pubDate>
</item>
<item>
<guid>830</guid>
<title>asp通过多次获得来取得用户的真实IP</title>
<link>https://www.qwbm.com/new.asp?id=830</link>
<description><![CDATA[&lt;%'asp取得用户的真实IP'以下是网上找到的说明'1. Request.ServerVariables("HTTP_CLIENT_IP") 有，只是未成标准，不一定服务器都实现了。'2. Request.ServerVariables("HTTP_X_FORWARDED_FOR") 是有标准定义，用来识别经过HTTP代理后的客户端IP地址，格式：clientip,proxy1,proxy2'3. Request.ServerVariables("REMOTE_ADDR") 是可靠的， 它是最后一个跟你的服务器握手的IP，可能是用户的代理服务器，也可能是自己的反向代理function checkip(checkstring)	'用正则判断IP是否合法	dim re1	set re1=new RegExp	re1.pattern="^[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}$"	re1.global=false	re1.Ignorecase=false	checkip=re1.test(checkstring)	set re1=not]]></description>
<author>深山工作室</author>
<source>https://www.qwbm.com/new.asp?id=830</source>
<category>ASP</category>
<pubDate>2018/4/10 11:26:02</pubDate>
</item>
<item>
<guid>829</guid>
<title>通过XMLHTTP检查网站能否打开</title>
<link>https://www.qwbm.com/new.asp?id=829</link>
<description><![CDATA[&lt;%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%&gt;&lt;%'通过XMLHTTP检查网站能否打开Sub main_one()&nbsp; &nbsp; Dim t&nbsp;&nbsp; &nbsp; response.charset="gb2312"&nbsp; &nbsp; With CreateObject("MSXML2.XMLHTTP")&nbsp; &nbsp; &nbsp; rem&nbsp; .Open "GET", "http://www.qwbm.com/", False&nbsp; &nbsp; &nbsp; &nbsp;.Open "GET", "http://reetai.com/", False&nbsp; &nbsp; &nbsp; &nbsp; .setRequestHeader "Content-Type", "application/x-www-form-urlencoded"&nbsp; &nbsp; &nbsp; &nbsp; .send ()&nbsp; &nbsp; &nbsp; rem&nbsp; t]]></description>
<author>深山工作室</author>
<source>https://www.qwbm.com/new.asp?id=829</source>
<category>ASP</category>
<pubDate>2018/4/3 21:39:18</pubDate>
</item>
<item>
<guid>828</guid>
<title>asp利用sina提供的ip库端口来获得当前IP所有的地区，所在国，所在省，所在市，在线解析json</title>
<link>https://www.qwbm.com/new.asp?id=828</link>
<description><![CDATA[&lt;%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%&gt;&lt;%'asp利用sina提供的ip库端口来获得当前IP所有的地区，所在国，所在省，所在市，在线解析jsonthis_ip = Request.ServerVariables("REMOTE_ADDR")get_ip_url = "http://int.dpool.sina.com.cn/iplookup/iplookup.php?format=json&amp;ip=" &amp; g_ipUserInfo=GetURL(get_ip_url)Call InitScriptControl:Set objTest = getJSONObject(UserInfo)response.write "当前IP：" &amp; this_ip &amp; "____&lt;br&gt;"response.write "当前解析地址：" &amp; get_ip_url &amp; "____&lt;br&gt;"response.write "获得的json内容：" &amp; UserInfo &a]]></description>
<author>深山工作室</author>
<source>https://www.qwbm.com/new.asp?id=828</source>
<category>ASP</category>
<pubDate>2018/3/20 15:13:15</pubDate>
</item>
<item>
<guid>827</guid>
<title>利用aspJpeg组件生成多图片水印组合时给加上透明水印图片</title>
<link>https://www.qwbm.com/new.asp?id=827</link>
<description><![CDATA[&lt;%
'建立实例
Set Jpeg = Server.CreateObject("Persits.Jpeg")
Set Jpeg1 = Server.CreateObject("Persits.Jpeg")
'打开要加水印的图片 
Jpeg.Open Server.mappath(路径)
'透明图片水印图
Jpeg1.Open Server.mappath("../Images/sy.gif")
'合并图
Jpeg.Canvas.DrawImage 0,Jpeg.OriginalHeight/2-33,Jpeg1,0.6,&amp;HFFFFFF	'这句是可以起到加的gif或者png8图片的背景透明，png24的格式会显示有毛边
' 保存文件 
Jpeg.Save Server.mappath(路径)
' 注销对象 
Set Jpeg = Nothing
Set Jpeg1 = Nothing
%&gt;

加透明图片水印，实际上就是将两个图合并，最关键的就是这一句：

Jpeg.Canvas.DrawImage 0,Jpeg.Origina]]></description>
<author>深山工作室</author>
<source>https://www.qwbm.com/new.asp?id=827</source>
<category>ASP</category>
<pubDate>2018/3/16 17:00:02</pubDate>
</item>
<item>
<guid>826</guid>
<title>ASP连接各种数据库的方法</title>
<link>https://www.qwbm.com/new.asp?id=826</link>
<description><![CDATA[ASP与11种数据库连接的代码大全，相信这个很给力，特别是ASP新手朋友，包括了ASP连接Access、MYSQL、Oracle、dBase等各种数据库的连接代码，不费话了，给重点：ASP连接Access数据库（DSN-less连接方法）:set adocon=Server.Createobject("adodb.connection")adoconn.Open"Driver={Microsoft Access Driver(*.mdb)};DBQ="&amp;_Server.MapPath("数据库所在路径")ASP连接Access数据库（ OLE DB连接方法）：set adocon=Server.Createobject("adodb.connection")adocon.open"Provider=Microsoft.Jet.OLEDB.4.0;"&amp;_"Data Source=" &amp; Server.MapPath("数据库所在路径")ASP连接SQL server的方法：set adocon=server.createobject("adodb.recordse]]></description>
<author>深山工作室</author>
<source>https://www.qwbm.com/new.asp?id=826</source>
<category>ASP</category>
<pubDate>2016/8/22 8:56:32</pubDate>
</item>
<item>
<guid>825</guid>
<title>asp获得系统Unix时间戳与将Unix时间戳转为正常日期</title>
<link>https://www.qwbm.com/new.asp?id=825</link>
<description><![CDATA[&lt;%unixtime=DateDiff("s", "01/01/1970 00:00:00", Now())response.write unixtime	'显示Unix时间戳response.write "&lt;hr&gt;"response.write DateAdd("s",unixtime, "01/01/1970 00:00:00")	'将Unix时间戳转为正常日期response.write "&lt;hr&gt;"response.write DateDiff("s", "01/01/1970 00:00:00", time)	'这个显示Unix时间戳不一样%&gt;以下是显示效果14712877122016-8-15 19:01:52-2209093088]]></description>
<author>深山工作室</author>
<source>https://www.qwbm.com/new.asp?id=825</source>
<category>ASP</category>
<pubDate>2016/8/15 19:04:22</pubDate>
</item>
<item>
<guid>824</guid>
<title>关于SQL2008 “不允许保存更改。您所做的更改要求删除并重新创建以下表。您对无法重新创建的标进行了更改或者启用了‘阻止保存要求重新创建表的更改’” 解决方案</title>
<link>https://www.qwbm.com/new.asp?id=824</link>
<description><![CDATA[近日在使用sql2008的过程中，要对已经创建完成的表结构进行修改，却一直提示弹出如下提示：“不允许保存更改。您所做的更改要求删除并重新创建以下表。您对无法重新创建的标进行了更改或者启用了“阻止保存要求重新创建表的更改”开始还以为是因为我过多的在家里以及公司的机子上使用这个数据库引起的版本问题，但是最后确定并非是版本问题，经过搜素，找到了相应的解决方法：打开SQL SERVER 2008 工具--&gt;选项--&gt;Designers--&gt;表设计器和数据库设计器，把“阻止保存要求重新创建表的更改”的勾去掉然后点“确定”即可。]]></description>
<author></author>
<source>https://www.qwbm.com/new.asp?id=824</source>
<category>ASP</category>
<pubDate>2016/8/2 21:57:20</pubDate>
</item>
<item>
<guid>823</guid>
<title>access数据库做的网站出现.ldb不能删除超过2KB之后就会网站访问不了数据库，提示数据库不存在</title>
<link>https://www.qwbm.com/new.asp?id=823</link>
<description><![CDATA[.ldb的文件是ACCESS读写的时候的临时文件,只要读写ACCESS文件就会生成.1. 排除空间问题二.访问数据库的程序优化主要都是因为对数据库存取完后，没有及时释放记录集和断开数据库连接rs.closeset rs=nothingconn.closeset conn=nothing例子：conn.asp&lt;%dim conndim connstrdim dbdb="database/data.mdb"Set conn = Server.CreateObject("ADODB.Connection")connstr="Provider=Microsoft.Jet.OLEDB.4.0;Data Source="&amp; Server.MapPath(""&amp;db&amp;"")conn.Open connstrIf Err Thenerr.ClearSet Conn = NothingResponse.Write "服务器正在维护，请稍后再试。"Response.EndEnd IfSub CloseConn()'以下是断开数据库连接语句conn.closeset conn=]]></description>
<author></author>
<source>https://www.qwbm.com/new.asp?id=823</source>
<category>ASP</category>
<pubDate>2016/6/16 11:49:35</pubDate>
</item>
<item>
<guid>822</guid>
<title>asp中最难发现的错误由最简单的程序引起</title>
<link>https://www.qwbm.com/new.asp?id=822</link>
<description><![CDATA[这是一个非常简单的asp程序，就是将两个字符串连接后输出，这已经是asp开发过程中最简单的程序了，如下：
&lt;%
ca="1"
ha="2"
response.write ca&amp;ha
%&gt;
你保存成一个asp文件，然后运行一下，看看结果是什么？


以下是运行的错误结果
==========================================

错误类型：
Microsoft VBScript 编译器错误 (0x800A0401)
语句未结束
/d.asp, line 4, column 17
response.write ca&amp;ha
----------------^

==========================================


这也太简单了，你可能想都不用想，直接回答运行结果是12。
没有想到结果是错误的
提示语句未结束&nbsp;
因为这段程序实在是太简单了，找了N遍都找不出来这段程序有错误。
什么原因导致这段程序有错了？
网上找了一下，找到原因了："asp中]]></description>
<author></author>
<source>https://www.qwbm.com/new.asp?id=822</source>
<category>ASP</category>
<pubDate>2016/6/7 15:48:25</pubDate>
</item>
<item>
<guid>821</guid>
<title>Asp得到当月天数的函数方法</title>
<link>https://www.qwbm.com/new.asp?id=821</link>
<description><![CDATA[dd=dateadd("m",date,1) '获取下月的今天日期dd=cdate(year(dd)&amp;"-"&amp;month(dd)&amp;"-1") '获取下月第一天的日期 year(dd)是取dd日期的'年',month(dd)是取月,day(dd)取日,cdate(),是规范日期格式dd=dateadd("d",dd,-1),下月的第一天减一天就是本月的最后一天日期i=day(dd)response.write i在asp中我们如果想知道当月有多少天，是没有系统函数来计算的。那么如何计算当月的天数呢。我想了一个办法，就是用两个月的月初相减，那么得到的就是当月的天数。下面是我写的函数：Function GetDays(tDate) &nbsp;&nbsp;dt1 = CDate(Year(tDate) &amp; "-" &amp; Month(tDate) &amp; "-1") ' 得到本月第一天&nbsp;dt2 = DateAdd("m",1,dt1) ' 得到下个月第一天&nbsp;GetDays=DateDiff("d",dt1,dt2) ' 得到两个月的]]></description>
<author></author>
<source>https://www.qwbm.com/new.asp?id=821</source>
<category>ASP</category>
<pubDate>2016/3/12 14:58:19</pubDate>
</item>
<item>
<guid>820</guid>
<title>在服务器上新建网站，在服务器用域名能访问，但是外网访问不了的解决办法</title>
<link>https://www.qwbm.com/new.asp?id=820</link>
<description><![CDATA[在服务器新建网站在服务器上用域名可以正常访问网站在外网用域名访问就不正常 打不开ping时也正常，就是不能看到网页错误原因：windows自带的防火墙已开启但是没有添加80端口造成的解决办法：1、开始---设置---控制面板---windows防火墙---例外（入站规则）---添加端口---名称和端口号分别输入80---确定（如果服务器环境已改为非80端口则添加对应端口号）2、有另一种情况除了使用以上方法外还要考虑到一个问题，那就是你的服务器或云主机提供商在整体网络上设置了白名单机制，没有在白名单里的域名外网也无法访问到，此时需要你联系服务商把域名添加进去解决问题。]]></description>
<author></author>
<source>https://www.qwbm.com/new.asp?id=820</source>
<category>ASP</category>
<pubDate>2015/12/11 22:28:01</pubDate>
</item>
<item>
<guid>818</guid>
<title>httpd.ini中的RewriteRule、RewriteCond规则了解以有二级域名解析实例</title>
<link>https://www.qwbm.com/new.asp?id=818</link>
<description><![CDATA[研究了半天，网上个视频教程也没有看了半天，看懂一点RewriteRule规则，和大家分享一下经验：.htaccess 文件中url重定向部分的规则是如下这样形式的：RewriteCond&nbsp;￥%……&amp;*（）RewriteRule&nbsp;*&amp;……%……&amp;*RewriteRule&nbsp;*&amp;……%……&amp;*RewriteCond&nbsp;￥%……&amp;*（）RewriteRule&nbsp;*&amp;……%……&amp;*RewriteRule&nbsp;*&amp;……%……&amp;*有的可能只有RewriteRule&nbsp;组成的url重定向规则部分RewriteRule&nbsp;*&amp;……%……&amp;*RewriteRule&nbsp;*&amp;……%……&amp;*.........那么RewriteCond&nbsp;RewriteRule &nbsp;两个是什么含义呢。其实RewriteCond&nbsp;和if判读语句的作用很相似。 当url地址匹配到其中一个RewriteCond&nbsp;的]]></description>
<author></author>
<source>https://www.qwbm.com/new.asp?id=818</source>
<category>ASP</category>
<pubDate>2015/10/16 19:52:57</pubDate>
</item>
<item>
<guid>817</guid>
<title>httpd.ini一些参数说明</title>
<link>https://www.qwbm.com/new.asp?id=817</link>
<description><![CDATA[修改httpd.ini后请重启IIS以下是必须内容,不用修改[ISAPI_Rewrite]CacheClockRate 3600RepeatLimit 32#上面三行不要改动,以下为规则设置RewriteRule /([0-9,a-z]*)/(\d+).html /$1/show.mobi?id=$2 [I]#文件内容结束附加说明一下设置规则时的格式：其他的参数一览I (ignore case)不管大小写强行指定字符匹配,这个FLAG影响RewriteRule指令和相应的RewriteCond 指令F (Forbidden)对客户端做反应,停止REWRITING进程并且发送403错误,注意在这种情况下FORMATSTRING 是无用的并可以设置为任何非空字符串。L (last rule)不应用任何重写规则在此停止重写进程,使用这个FLAG以阻止当前被重写的URI被后面的规则再次重写N (Next iteration)强制REWRITINGENGINE调整规则目标并且从头重启规则检查(所有修改将保存),重启次数由RepeatLimit指定的值限制,如果这个数值超过N FLAG将被忽略NS]]></description>
<author></author>
<source>https://www.qwbm.com/new.asp?id=817</source>
<category>ASP</category>
<pubDate>2015/10/16 19:46:27</pubDate>
</item>
<item>
<guid>816</guid>
<title>httpd.ini伪静态网站分享到微信好友微信朋友圈链接打不开报404错误的解决办法</title>
<link>https://www.qwbm.com/new.asp?id=816</link>
<description><![CDATA[最近有客户反映用百度分享等分享到QQ空间，完全正常的，但是分享网页链接到微信朋友圈的时候，发现链接无法打开，提示无法找到该页404错误，同样分享到QQ、微博等链接能正常访问，这样的错误不应该是百度与腾讯的问题。仔细看了一下地址原来错误出在分享之后的网页地址上，分享到QQ空间上的地址后面加了#号+数字字母，而分享到微信的是在后面加了?号+数字字母。以下是代码比较分享到QQ空间：http://www.qwbm.com/about/index.htm#0-qzone-1-1476-d020d2d2ad1440分享给QQ好友：http://www.qwbm.com/about/index.htm#0-sqq-1-7608-9737f6f9e09dfabfee85分享到微信朋友圈：http://www.qwbm.com/about/index.htm?from=timeline&amp;isappinstalled=0如果网站是使用了伪静态的话，在后面加了?号+数字字母后就找不到，所以出错了。动态与生成后的静态页面分享到微信好友、微信朋友圈时可以正常访问但是利用httpd.ini做的伪静态页面分]]></description>
<author></author>
<source>https://www.qwbm.com/new.asp?id=816</source>
<category>ASP</category>
<pubDate>2015/10/16 19:27:41</pubDate>
</item>
<item>
<guid>815</guid>
<title>windows8的iis7应用程序池标识问题</title>
<link>https://www.qwbm.com/new.asp?id=815</link>
<description><![CDATA[如果出现以下错误：应用程序池 ×××的标识无效。可能是为标识指定的用户名或密码不正确，或者用户不具有批登录权限。如果不更正标识，则当应用程序池接收到它的第一个请求时，应用程序池将被禁用。如果是批登录权限导致的此问题，则必须在授予权限之后更改 IIS 配置存储中的标识，然后 Windows Process Activation Service (WAS)才可以重试登录。如果在处理对应用程序池的第一个请求之后标识仍然无效，应用程序池将被禁用。数据字段包含错误号。需要在 控制面板-》管理工具-》本地安全策略-》本地策略-》用户权利指派-》做为批处理作业登录 添加用户进去。&nbsp;1. 打开 IIS 管理器。 有关如何打开 IIS 管理器的信息，请参阅 打开 IIS 管理器 (IIS 7)。2. 在“连接”窗格中，展开服务器节点，然后单击“应用程序池”。3. 在“应用程序池”页中，选择要为其指定标识的应用程序池，然后单击“操作”窗格中的“高级设置”。4. 对于“标识”属性，单击 ... 按钮以打开“应用程序池标识”对话框。5. 如果您要使用内置帐户，请选中“内置帐户”选项，然后从列表中选择]]></description>
<author></author>
<source>https://www.qwbm.com/new.asp?id=815</source>
<category>ASP</category>
<pubDate>2015/10/5 21:13:57</pubDate>
</item>
<item>
<guid>814</guid>
<title>ASP读取json并输出</title>
<link>https://www.qwbm.com/new.asp?id=814</link>
<description><![CDATA[&lt;%Dim scriptCtrl ‘这个dim很重要一定要加，如果不加会输出不正常，切记Function parseJSON(str)If Not IsObject(scriptCtrl) ThenSet scriptCtrl = Server.CreateObject("MSScriptControl.ScriptControl")scriptCtrl.Language = "JScript"scriptCtrl.AddCode "function ActiveXObject() {}" ′ 覆盖 ActiveXObjectscriptCtrl.AddCode "function GetObject() {}" ′ 覆盖 ActiveXObjectscriptCtrl.AddCode "Array.prototype.get = function(x) { return this[x];}; var result = null;"End If&nbsp; On Error Resume NextscriptCtrl.ExecuteStatement "result = " &a]]></description>
<author></author>
<source>https://www.qwbm.com/new.asp?id=814</source>
<category>ASP</category>
<pubDate>2015/9/20 11:01:26</pubDate>
</item>
<item>
<guid>813</guid>
<title>ASP 格式化显示时间为几个月,几天前,几小时前,几分钟前,或几秒前</title>
<link>https://www.qwbm.com/new.asp?id=813</link>
<description><![CDATA[Function DateStringFromNow(Byval sTheDate)' 格式化显示时间为几个月,几天前,几小时前,几分钟前,或几秒前&nbsp; &nbsp; Dim iSeconds, iMinutes, iHours, iDays&nbsp; &nbsp; iSeconds = DateDiff("s", sTheDate, Now()) &nbsp;'d/h/n/s&nbsp; &nbsp; iMinutes = Int(iSeconds/60)&nbsp; &nbsp; iHours = Int(iSeconds/3600)&nbsp; &nbsp; iDays = Int(iSeconds/86400)&nbsp; &nbsp; If iDays &gt; 60 Then&nbsp; &nbsp; &nbsp; &nbsp; DateStringFromNow = sTheDate&nbsp; &nbsp; ElseIf iDays &gt; 30 Then&nbsp; &nbsp; &nbsp; &nbsp; DateStringFromNow = "1个月]]></description>
<author></author>
<source>https://www.qwbm.com/new.asp?id=813</source>
<category>ASP</category>
<pubDate>2015/5/23 16:10:18</pubDate>
</item>
<item>
<guid>811</guid>
<title>asp判断是否是手机访问</title>
<link>https://www.qwbm.com/new.asp?id=811</link>
<description><![CDATA[asp判断浏览器是否是手机版的，如果是手机版，就跳转相应的页面&lt;%qwbmmobilefeatures = "mini 9.5|vx1000|lge|m800|e860|u940|ux840|compal|wireless| mobi|ahong|lg380|lgku|lgu900|lg210|lg47|lg920|lg840|lg370|sam-r|mg50|s55|g83|t66|vx400|mk99|d615|d763|el370|sl900|mp500|samu3|samu4|vx10|xda_|samu5|samu6|samu7|samu9|a615|b832|m881|s920|n210|s700|c-810|_h797|mob-x|sk16d|848b|mowser|s580|r800|471x|v120|rim8|c500foma:|160x|x160|480x|x640|t503|w839|i250|sprint|w398samr810|m5252|c7100|mt126|x225|s5330|s820|htil-g1|fly v71|s302|-x113|no]]></description>
<author>深山</author>
<source>https://www.qwbm.com/new.asp?id=811</source>
<category>ASP</category>
<pubDate>2015/3/11 9:06:06</pubDate>
</item>
<item>
<guid>810</guid>
<title>asp利用正则检查手机端的浏览器标识来确定是否是手机访问 如果是手机访问就使用手机模板</title>
<link>https://www.qwbm.com/new.asp?id=810</link>
<description><![CDATA[asp利用正则检查手机端的浏览器标识来确定是否是手机访问 如果是手机访问就使用手机模板&nbsp;&lt;%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%&gt;&lt;!--#include file="inc/conn.asp"--&gt;&lt;%Function regexpmobiletest(patrn, strng)	Dim regEx, retVal		'建立变量	Set regEx=New RegExp	'建立正则表达式	regEx.Pattern=patrn		'设置模式	regEx.IgnoreCase=True	'设置是否区分大小写，true为不区分	retVal=regEx.Test(strng)'执行搜索测试	regexpmobiletest=retValEnd Function&nbsp;function webmobilereturn(wmleis)	dim mobile_browser,user_agent, accept,mobile_browser_type	mobile_browser = "0"	user_agent=]]></description>
<author>深山</author>
<source>https://www.qwbm.com/new.asp?id=810</source>
<category>ASP</category>
<pubDate>2015/3/11 9:03:55</pubDate>
</item>
<item>
<guid>809</guid>
<title>IIS上传文件大小解处限制的方法</title>
<link>https://www.qwbm.com/new.asp?id=809</link>
<description><![CDATA[在 Windows7(iis7.5)、Win2008(iis 7.0)和Win2003(iis 6.0) 中，默认设置是特别严格和安全的，这样可以最大限度地减少因以前太宽松的超时和限制而造成的攻击。指定 ASP 请求的实体主体中允许大小为 200,000 (IIS6为204,800) 个字节，在 iis 6.0 之前的版本中，例如：Windows XP(IIS 5.1)，没有限制。&nbsp;这就造成了文件上传不能超过200k，而事实上是提交数据不能超过200k,你可以发一个很长的帖子试试，也会出现这个错误。IIS7.0的修改方法如下：&nbsp;1、打开IIS管理器→ 双击“IIS”中的“ASP”→ 打开“配置 ASP 应该程序的属性”→ 展开“限制属性”；2、修改“最大请求实体主体限制”的值，默认值为200000（即不到200KB）；3、把它修改为你想修改的大小，如：52000000（50MB）；4、修改完成点击“应用”OK！附：iis7 上传大文件限制的真正解决办法1、打开“Internet 信息服务(IIS)管理器”；2、关闭IIS服务；3、双击“Default Web Sit]]></description>
<author></author>
<source>https://www.qwbm.com/new.asp?id=809</source>
<category>ASP</category>
<pubDate>2015/1/20 9:42:00</pubDate>
</item>
<item>
<guid>804</guid>
<title>asp利用XMLHTTP获取xml数据方法</title>
<link>https://www.qwbm.com/new.asp?id=804</link>
<description><![CDATA[url = "http://www.qwbm.com/book/qwbm_book_update.xml"Set http=Server.CreateObject("Microsoft.XMLHTTP") &nbsp;&nbsp;http.Open "GET",url,False &nbsp;&nbsp;http.send &nbsp;&nbsp;Set xml=Server.CreateObject("Microsoft.XMLDOM") &nbsp;&nbsp;xml.Async=true &nbsp;&nbsp;xml.ValidateOnParse=False &nbsp;&nbsp;xml.Load(http.ResponseXML) &nbsp; &nbsp;&nbsp;If xml.ReadyState&gt;2 Then&nbsp; &nbsp; set res = xml.selectSingleNode("//qwbmbook")&nbsp; &nbsp; book_up_open = res.getAttribute("uopen")	'是否有更新内容&nbsp;]]></description>
<author>深山行者</author>
<source>https://www.qwbm.com/new.asp?id=804</source>
<category>ASP</category>
<pubDate>2014/9/17 21:59:29</pubDate>
</item>
</channel>
</rss>
