随笔分类 -  ASP技术

介绍ASP技术
摘要:'删除HTMLFunction RemoveHTML( strText )Dim RegEx Set RegEx = New RegExp RegEx.Pattern = "]*>"RegEx.Global = True RemoveHTML = RegEx.Replace(strText, ""... 阅读全文
posted @ 2009-05-17 13:22 Lee Vane 阅读(246) 评论(0) 推荐(0)
摘要:****示例: ****在文章内容中加入:[PageList] Function PageList(str) content=str if request.QueryString("page")="" then page=1 else page=cint(request.QueryStr... 阅读全文
posted @ 2008-11-02 15:37 Lee Vane 阅读(215) 评论(0) 推荐(0)
摘要:无标题文档导航一导航二导航三导航四导航五内容一内容二内容三内容四内容五 阅读全文
posted @ 2008-11-02 15:04 Lee Vane 阅读(250) 评论(0) 推荐(0)
摘要:" target=_blank>" '五列显示mod 5 tempnum2=tempnum2+1 rs.movenext loop %> 阅读全文
posted @ 2008-10-29 14:46 Lee Vane 阅读(574) 评论(0) 推荐(0)
摘要:Code Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> Form field hints with CSS and JavaScr... 阅读全文
posted @ 2008-10-20 16:43 Lee Vane 阅读(225) 评论(0) 推荐(0)
摘要:再网上无意间发现了这个,呵呵,太好了 演示地址:http://60.190.55.114:8088/cal/calendar.html 阅读全文
posted @ 2008-10-20 16:35 Lee Vane 阅读(484) 评论(1) 推荐(0)
摘要:Code Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> ASP调用方法: 阅读全文
posted @ 2008-10-13 18:06 Lee Vane 阅读(187) 评论(0) 推荐(0)
摘要:在处理网页图片时,特别是一些图片列表的应用里面,很难保证图片统一大小,直接设置图片大小又会导致图片拉伸,造成图片模糊,本文介绍的代码可以在图片加载完成后自动按比例调整图片大小。 Javascript: ... 阅读全文
posted @ 2008-10-09 11:21 Lee Vane 阅读(246) 评论(0) 推荐(0)
摘要:0 thenvConditions=" where "&ValueselsevConditions=" where 1=1 "end ifend property'-------------------------------------------------------'设置查询的排序publi... 阅读全文
posted @ 2008-10-01 00:05 Lee Vane 阅读(551) 评论(0) 推荐(0)
摘要:function getFileExtName(fileName) dim pos pos=instrrev(filename,".") if pos>0 then getFileExtName=mid(fileName,pos+1) else getFileExtName="" end ifen... 阅读全文
posted @ 2008-09-26 18:50 Lee Vane 阅读(379) 评论(0) 推荐(0)
摘要:'***************************************************'函数名:IsObjInstalled'作 用:检查组件是否已经安装'参 数:strClassString ----组件名'返回值:True ----已经安装' False ----没有安装'**... 阅读全文
posted @ 2008-09-26 18:48 Lee Vane 阅读(622) 评论(0) 推荐(0)
摘要:'================================================'函数名:FormatDate'作 用:格式化日期'参 数:DateAndTime ----原日期和时间' para ----日期格式' 用法:再ASP中:=FormatDate(rs("pubdate... 阅读全文
posted @ 2008-09-26 18:46 Lee Vane 阅读(254) 评论(0) 推荐(0)
摘要:'================================================'函数名:Alert'作 用:弹出对话框'参 数:Alert----弹出对话框' str ----文本' 用法:Alert"添加成功!"'返回值:真'==========================... 阅读全文
posted @ 2008-09-26 18:45 Lee Vane 阅读(379) 评论(0) 推荐(0)
摘要:使用FORM提交的数据转到IFRAME中检测,当前页面不刷新 阅读全文
posted @ 2008-05-19 16:13 Lee Vane 阅读(537) 评论(9) 推荐(0)
摘要:下面这部分程序可说是万能的数据库连接程序几乎可以连接所有的MS数据库,自己拿去研究吧(这个程序是“ASP网页制作教程”这本书里面的——一本好书): 0 Then Exit Function conn.Open Param If Err.Number 0 Then Exit Function Se... 阅读全文
posted @ 2008-03-11 13:47 Lee Vane 阅读(325) 评论(0) 推荐(0)
摘要:'**************************************************'函数ID:0045[在数据库中插入字段值]'函数名:InterTbValue'作 用:创建数据表'参 数:ConnStrs ---- 数据库链接字串'参 数:Tabnamestr ---- 数据表... 阅读全文
posted @ 2008-03-11 13:45 Lee Vane 阅读(307) 评论(0) 推荐(0)
摘要:'**************************************************'函数ID:0034[用于右填充指定数量的字符,以达到规范长度]'函数名:rpad'作 用:用于右填充指定数量的字符,以达到规范长度'参 数:desstr ---- 目标字符'参 数:padchar... 阅读全文
posted @ 2008-03-11 13:44 Lee Vane 阅读(221) 评论(0) 推荐(0)
摘要:'**************************************************'函数ID:0041[生成随机密码]'函数名:MakeRndPass'作 用:生成随机密码'参 数:passlen ---- 要生成的密码长度'参 数:passtype ---- 要生成的密码类型'... 阅读全文
posted @ 2008-03-11 13:44 Lee Vane 阅读(318) 评论(0) 推荐(0)
摘要:'**************************************************'''''函数ID:0028[取得图像的类型|宽|高]'函数名:GetImageDx'作 用:取得图像的类型|宽|高'参 数:filepath ---- 文件路径及文件命名'返回值:"类型|宽|高"... 阅读全文
posted @ 2008-03-11 13:43 Lee Vane 阅读(426) 评论(0) 推荐(0)
摘要:'**************************************************'函数ID:0020[创建MsAccess数据库]'函数名:CrDb_MsAccess'作 用:创建MsAccess数据库'参 数:DbPath ---- 目标目录信息'参 数:DbFileName... 阅读全文
posted @ 2008-03-11 13:42 Lee Vane 阅读(191) 评论(0) 推荐(0)