asp 

页面延迟的两个简单方法

一、 <% response.buffer = true %> <% ' setup the variables necessary to accomplish the task dim timerstart, timerend, timernow, timerwait ' how many seconds do you want them to wait... timerwait = 5 ' setup and start the timers timernow = timer timerstart = timernow timerend = timerstart + timerwait ' keep it ...

判断函数是奇数还是偶数

function is_odd(num) as boolean
n=num mod 2
if n=1 then
is_odd=true
else
is_odd=false
end if
end function
是奇数返回真,是偶数返回假。

ASP+Access莫名奇妙的sql语句错误解决

有时候写asp用conn.execute(sql)查询、更新、插入access数据库数据时,明明正确的语句却往往会显示sql语句错误,相当恼火,特进行了归纳,可适当为字段添加“[”、“]”解决: 例1:select * from a 如出现错误,可改为:select * from [a] 例2:update [user] set password = '"&data1&"' where secname='&qu...

禁用html页面的缓存

 1。在asp页面首部<head>加入     response.buffer   =   true     response.expiresabsolute   =   now()   -   1     response.expires   =   0     response.cachecontrol  ...

flash和asp分页的一点心得

看了这个的一些帖子,学到了很多东西,现在和大家一起分享 flash现在只是一个显示的功能,过程中看了一些别人的东西,觉得分页似乎有很简单的实现方式. 基本上都是用xml传送的. 显示用 list 组件和 datagrid 都可以,这里我用的是动态文本,因为觉得组件用的太麻烦了. 所以用了蠢办法,没办法,找不到更好的~~~ 下面代码中的 list[..]就是动态文本的名趁,一次显...

ASP如何获得代码中第一张图片地址

'把pattern 又修改了下 'code要检测的代码 'leixing html 或者ubb 'nopic 代码没有图片时默认值 function toppic(code,leixing,nopic)         set regex = new regexp         regex.ignorecase = true         regex.global = true &n...

什么是asp?

从字面上说,ASP包含三方面含义: 1、Active:ASP使用了Microsoft的ActiveX技术。ActiveX(COM)技术是现在Microsoft软件的重要基础。它采用封装对象,程序调用对象的技术,简化编程,加强程序间合作。ASP本身封装了一些基本组件和常用组件,有很多公司也开发了很多实用组件。只要你可以在服务器上安装这些组件,通过访问组件,你就可以快速、简易地建立自...