易截截图软件、单文件、免安装、纯绿色、仅160KB

利用Global.ASP定时执行ASP

Using the global.asa to schedule ASP code execution.
Have you ever had some asp code that needed to execute every once in a while but, you just didn't know how to do it.
There is a solution that doesn't involve running any scheduling or scripting software on the server and is actually very easy to get working.
You see... there is thing called the "global.asa". Most ASP newbies probably wonder what the heck it even is. The Global.asa file is event driven. It can contain four event procedures: Application_OnStart, Application_OnEnd, Session_OnStart, and Session_OnEnd.
The global.asa is basically loaded into memory the first time any user views a page on your Web application. There are event procedure stubs that can contain script you want to be executed when the application starts or ends, or when the session starts or ends.
With some tricky coding you can use this file to schedule code to execute. At least around the time you need it to, this won't be able to make it execute at exactly a certain time.
Here is the 1st example. It simply keeps track of how many visitors


相关文档:

用ASP随机产生随机数

<%
Function gen_key(digits)
'Create and define array
dim char_array(50)
char_array(0) = "0"
char_array(1) = "1"
char_array(2) = "2"
char_array(3) = "3"
char_array(4) = "4"
char_array(5) = "5"
char_array(6) = "6"
char_array(7) = "7"
char_array(8) = "8"
char_array(9) = "9"
char_array( ......

ASP项目中的公共翻页模块

在大型的ASP项目中,很多的页面都涉及到翻页功能。如果每个页面都写一个翻页的程序的话,这样的工作即降低了工作效
率,也不利于工程的模块化,不能使代码重用。因此,把翻页这样的功能模块化是很有必要的。
  设计方法:
  1、调用该模块时,只需要传递记录集和每页显示的记录的条数;
  2、可以点击链接进行翻 ......

ASP连接数据库的全能代码

asp连接access和mssql的万能代码:
'解决了ACCESS数据库路径的问题!
'采用DBType=0或DBType=1来区分AC库还是MSSQL库
'具体采用AC库时应注意的事项,请看程序说明
-----------------------------------------------
Dim DBType,Conn,StrConn
DBType=0 '0为Access数据库,1为MSSQL数据库
If(DBType=0) Then
......

excel asp技术总结

 一、 环境设置
  服务器端的环境设置从参考数据上看,微软系列的设置应该都行,即:
  1.Win9x+PWS+Office
  2.Win2000 Professional+PWS+Office
  3.Win2000 Server+IIS+Office
  目前笔者测试成功的环境是后二者。Office的版本没有特别需求,考虑到客户机设置的不确定性和下兼容特性,建议服务器端Of ......

一段ASP。NET的IFRAME的页面跳转


<script>window.parent.document.getElementById('BIframe').src='B.aspx';</script>
http://www.cnblogs.com/lijigang/archive/2007/05/18/751943.html
再来看看第二种刷新方法:“重载页面”
<script>window.parent.document.frames.BIframe.RefreshmyForm();</script>
<scri ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号