文章分类 -  ASP

Active Server Page
asp下实现 重新排序数字数组的代码
摘要:'****************************** Function NewOrder(ArrStr) For i = 0 To Ubound(Split(ArrStr,",")) If n > 0 Then ArrStr = Replace(ArrStr,n,0) End If sp = split(ArrStr,",") n = 0 For j = 0 To ub... 阅读全文
posted @ 2008-01-31 12:45 radman 阅读(1001) 评论(0) 推荐(0)
asp下去除数组中重复的项的方法
摘要:'****************************** Function MoveR(Rstr) Dim i,SpStr SpStr = Split(Rstr,",") For i = 0 To Ubound(Spstr) If I = 0 then MoveR = MoveR & SpStr(i) & "," Else If instr(MoveR,SpSt... 阅读全文
posted @ 2008-01-31 12:42 radman 阅读(682) 评论(1) 推荐(0)
首页访问慢,生成静态HTML的方法
摘要:1、ASP两种简单的生成静态首页的方法 为什么要生成静态首页? 1、如果你首页读取的数据库次数比较多,速度很慢,而且占用很多服务器资源。使用静态页面访问速度当然快多了 2、搜索引擎容易搜索到 3、如果程序出问题,也能保证首页能访问。 4、其他的太多,自己想:) 应用方式: 如果你的首页是index.asp,你可以生成index.htm (默认访问顺序必须是index.htm,index.asp)... 阅读全文
posted @ 2008-01-03 21:40 radman 阅读(1316) 评论(0) 推荐(0)
asp批量插入数据
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --> 阅读全文
posted @ 2008-01-03 15:17 radman 阅读(1396) 评论(0) 推荐(0)
ASP缓存类无错版
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ -->typename(var2) then equal=false elseif typename(obj)="Object" then if obj ... 阅读全文
posted @ 2008-01-03 14:57 radman 阅读(666) 评论(0) 推荐(0)
Asp提高首页性能的一个技巧
摘要:简单介绍: 一般一个网站的首页访问量是最大的,如果您的网站的首页打开的非常缓慢,您的客户将会陆续离开你的网站.通常我们把需要经过 复杂运算或者查询数据库得出的数据缓存起来或者生成静态网页来提高web应用的性能,这次我们直接把首页的输出缓存成一个字符串,然后定时更新,即照顾了 性能,又不影响首页的时效性.这里用到了一些VBS自定义类,Application对象,XmlHttp对象,adodb.st... 阅读全文
posted @ 2008-01-03 11:48 radman 阅读(166) 评论(0) 推荐(0)
过滤掉html字符
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ -->Function UBBCode(strValue) Dim RegExp Set RegExp=New RegExp RegExp.IgnoreCase =True RegExp.Global... 阅读全文
posted @ 2008-01-02 17:16 radman 阅读(121) 评论(0) 推荐(0)
ASP编程实用20例
摘要:1.如何用Asp判断你的网站的虚拟物理路径 使用Mappath方法 Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --> The Physical path to this virtual website is: 2.我如何知道... 阅读全文
posted @ 2008-01-02 17:13 radman 阅读(159) 评论(0) 推荐(0)
掌握ASP分页
摘要:首先,数据库中字段record_info存在于info表中(实例下载中有数据库),先链接数据库并将一个记录集打开,以下代码: 这段代码不详解,相信初入门的都会,具体的解释可以看看《手把手教你用ASP做留言本》教程, 接下来这是分页中比较重要的部分,了了三行而已: 第二句:rs.pagesize=5,这个什么意思呢?它就是在Recordset对象中的一个内置属性,它的作用是指定每页的记录条数,设... 阅读全文
posted @ 2008-01-02 17:00 radman 阅读(487) 评论(0) 推荐(0)
asp定义数组详解
摘要:asp定义数组详解 数组是有序数据的集合。数组中的元素可以不属于同一个数据类型。用一个统一的数组名和下标来唯一地确定数组中的元素,更改其中一个元素并不会影响其它元 素。数组的下标是有界的,分为下界和上界。数组可以用Dim、Private、Public或Static来声明,它们的语法格式相同。下面只介绍用 Dim声明数组的方法。 1.数组的定义与声明 数组的定义语法如下: Dim 数组名( [... 阅读全文
posted @ 2008-01-02 16:58 radman 阅读(18061) 评论(0) 推荐(0)
ASP中的函数
摘要:Array() 作用:返回一个数组 语法:Array(list) 适用的类型:字符,数字均可 结果:建立了一个包含7个元素的数组myArray myArray("Sunday","Monday", ... ... "Saturday") CInt() 作用:将一个表达式转化为数字类型 语法:CInt(表达式) 适用的类型:任何有效的字符均可 结果:236 转化字符"234"为数字234... 阅读全文
posted @ 2008-01-02 16:50 radman 阅读(250) 评论(0) 推荐(0)
ASP实现首页自动选择语言转跳
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --> 阅读全文
posted @ 2008-01-02 16:48 radman 阅读(410) 评论(0) 推荐(0)
ASP实现缓存!
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --> '下拉菜单缓存 ListBox = Application("ListBox") ' 将Application Object作为一个变量定义 If ListBox = "" Then ' 检... 阅读全文
posted @ 2008-01-02 16:47 radman 阅读(258) 评论(0) 推荐(0)