它山之石可以攻玉

键盘上的生活
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

随笔分类 -  ASP

摘要:在ASP编程中使用数组 数组的定义Dim MyArrayMyArray = Array(1,5,123,12,98)可扩展数组Dim MyArray()for i = 0 to 10ReDim Preserve MyArray(i)MyArray(i)=inext将一个字符串分割并返回分割结果的数组Dim MyArrayMyArray = Split(tempcnt,chr(13)&chr(10)... 阅读全文

posted @ 2007-03-13 16:11 陈达辉 阅读(3588) 评论(0) 推荐(0)

摘要:删除文件 iFileName 文件名 iPath 文件路径 '有关文件操作 'Power by huang_ke@hotmail.com '删除文件 iFileName 文件名 iPath 文件路径 sub DelFile(iFileName,iPath) realpath = Server.MapPath(iPath) & "\" & iFileName Set fso = Server.CreateObject("Scripting.FileSystemObject") fso.DeleteFile(realpath) Set fso = nothing end sub % 阅读全文

posted @ 2007-03-13 11:58 陈达辉 阅读(477) 评论(0) 推荐(0)

摘要:分页:1 THEN IF cint(cur) = 1 then Response.write (" [下一页] ") Response.write (" [末 页] ") ELSEIF cint(cur) = cint(rs.PageCount) THEN Response.write (" [首 页] ") Response.write (" [上一页] ") ELSE Resp... 阅读全文

posted @ 2007-03-12 13:39 陈达辉 阅读(444) 评论(0) 推荐(0)

摘要: 阅读全文

posted @ 2007-03-12 13:32 陈达辉 阅读(634) 评论(2) 推荐(0)

摘要:set conn=server.CreateObject("adodb.connection") conn.Open "PROVIDER=SQLOLEDB;DATA SOURCE=*.*.*.*;UID=;PWD=;DATABASE=*" % 阅读全文

posted @ 2007-03-12 13:26 陈达辉 阅读(232) 评论(0) 推荐(0)