搜索列表
-
正则表达式简单的检查输入email是否合法程序
【正则表达式】function chkEmail(email) on error resume next dim i,l,pos1,pos2 chkEmail=true if isnull(email) then chkEmail=false:exit function pos1= instr(email,"@") pos2=instrRev(email,".") if not(pos1>0) or not&n...
正则表达式简单的检查输入email是否合法程序 -
正则表达式检查来访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是否合法的实际应用 -
正则表达式高级学习技巧
【正则表达式】什么是RE? 想必各位大大在做文件查找的时侯都有使用过万用字符”*”,比如说想查找在Windows目录下所有的Word文件时,你可能就会用”*.doc”这样的方式来做查找,因为”*”所代表的是任意的字符。RE所做的就是类似这样的功能,但其功能更为强大。 写程序时,常需要比对字符串是否符合特定样式,RE最主要的功能...
正则表达式高级学习技巧 -
巧用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