搜索列表
-
正则表达式检查来访IP是否合法的实际应用
【正则表达式】正则表达式检查来访IP是否合法的实际应用 sub chkIP(boardid) dim rsIP dim ipArr dim ignored dim i dim ip dim sql ip=Request.ServerVariables("REMOTE_ADDR") ignored=false if not isempty(boardid)&...
正则表达式检查来访IP是否合法的实际应用 -
巧用FileSystem组件实现WEB应用中的本地特定打印的方法
【ASP编程】1、引言 随着Internet的飞速发展,许多企业都纷纷开发基于WEB的业务应用系统。一般情况下,基于WEB的业务应用都采用三层或三层以上的结构,前台即客户端是普通的WEB浏览器,中间业务逻辑应用层存放于WEB服务器上,由WEB服务器上的服务构件访问后台数据库。为了业务系统与Internet的互联,WEB服务器和数...
巧用FileSystem组件实现WEB应用中的本地特定打印的方法 -
asp调用Word打印的代码
【ASP编程】调用Word打印... 运行下列的脚本需要将IE的安全级别设为低,或在中级安全级别下将那个ActiveX控件设为启用,别忘记了: <html> <head> <title>Build Document by Script</TITLE> </HEAD> <Table&...
asp调用Word打印的代码 -
asp下将数据库中的信息存储至XML文件中
【ASP编程】save.asp <!-- #include file="adovbs.inc" --> <% ' Constants file included above. ' 如果文件存在则删除 Dim objFSO Set objFSO = Server.CreateObject("Scripting.FileSystemObject") If objFSO.FileE...
asp下将数据库中的信息存储至XML文件中 -
asp下制做行背景颜色交替变换的表格
【ASP编程】<% Const adInteger = 3 Const adVarChar = 200 ' 声明变量 Dim myRecordset Dim iLetter Dim Field Dim strAltColor ...
asp下制做行背景颜色交替变换的表格 -
asp下正则实现URL自动链接的一个函数
【正则表达式】复制代码 代码如下:Function AutoLinkURLs(strString) Dim match, matches, offset, url, email, link, relnkAutoLinkURL relnkAutoLinkURL = "<...
asp下正则实现URL自动链接的一个函数 -
编写一个含二级目录的源码(Asp+JavaScript)
【ASP编程】********************** (一) 打开记录集,创建数组,把记录集的值赋给数组. <% Dim count set Rs=server.createobject("adodb.recordset") Sql = "select * from BookBoard order by ClassId desc" Rs.open Sql,cn,...
编写一个含二级目录的源码(Asp+JavaScript) -
asp下调试程序的debug类
【ASP编程】ASP中最头疼的就是调试程序的时候不方便,我想可能很多朋友都会用这样的方法“response.write ”,然后输出相关的语句来看看是否正确。前几天写了一个千行的页面,里面大概有七八个SUB/FUNCTION,调试的时候用了有三十几个 response.write ,天,调试完后把这三十个一个个删除,累! 今天看到...
asp下调试程序的debug类 -
Insert Date and Time into Access
【ASP编程】 <% Function AccessDateTime (dateandtime) Dim myDay Dim myMonth Dim myYear myDay = Day(dateandtime) If Len(myDay)=1 Then myDay="0" & myDay myMonth = Month(dateandtime) I...
InsertDateandTimeintoAccess -
Highlight patterns within strings
【ASP编程】复制代码 代码如下:'Replaces pattern with highlighted replacement (using style) and preserves case Public Function highlight(strText, strFind) Dim objRegExp,&n...
Highlightpatternswithinstrings -
Asp下实现限制IP访问的程序代码
【ASP编程】<% ''获取访问者的地址 ip=Request.ServerVariables("REMOTE_ADDR") ''允许的IP地址段为10.0.0.0~10.68.63.255 allowip1="10.0.0.0" allowip2="10.68.10.71" response.write checkip(ip,allowip1,allowip2) function checkip(ip,allowip1,allowip2) dim check(4) checkip...
Asp下实现限制IP访问的程序代码 -
ASP中实现限制IP的函数详解
【ASP编程】'****************************** 'Function CheckIp(cInput_Ip,cBound_Ip) 'Created by qqdao, qqdao@263.net 2001/11/28 '说明:首先需要根据;号循环,然后判断是否含有"-",如果有则进行拆分处理,最后判断是否在范围内 '参数: cInput_Ip,代检查的ip 'cBound_Ip,给定的范围格式为...
ASP中实现限制IP的函数详解