asp隐藏下载地址和防盗代码
% function downloadfile(strfile) strfilename=strfile response.buffer=true response.clear set s=server.createobject(adodb.stream) s.open s.type=1 on error resume next set fso=server.createobject(scripting.filesystemobject) if not fso.fileexi
asp里如何循环输出26个英文字母
%@LANGUAGE=VBSCRIPT CODEPAGE=65001% !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd html xmlns=http://www.w3.org/1999/xhtml head meta http-equiv=Content-Type content=text/h

每个asp程序员必懂的知识
数据库连接: % set conn=server.createobject(adodb.connection) conn.open driver={microsoft access driver (*.mdb)};dbq=server.mappath(数据库名) % 打开数据库: exec=select * from 数据库表 set rs=server.createobject(adodb.recordset) rs.open exe
asp将字符串变数字的函数
常常因为一些小地放的失误导致整个程序瘫痪.今天就遇到了.一个商城系统.因为计算整得我改了N久 在此记下这些数据转换的函数 cstr()转换成字符串 cint()转换成数字 先用isnumberic函数判断 clng()转换为 Long 类型的 Variant 整形转字符形用:cstr()函数 字符
ASP生成静态代码,可用模板技术,非常容易
ASP生成静态代码,可用模板技术,非常简单,以下是代码示例: % If(Request.QueryString(Page)=) Then Page=1 Else Page=Request.QueryString(Page) End If SQL=Select ID,LTitle,LPostTime,LHits From Log_List order By ID DESC Set Rs = Server.CreateObje
解决ASP因为编码问题出现乱码现象 ASP中强制编码方法
如果你发现浏览页面的时候出现乱码。你可以尝试一下步骤: 确保你页面本身编码格式正确:例如test.asp中使用charset=utf-8,那么请先确保这个文件本身就是Utf-8编码的。你可以利用记事本进行转换。同样如果使用charset=GBK,请先确保这个文件本身就是GBK编码
Windows下asp,php运行速度比较
今天比较了一下在Windows下asp,php运行速度,分别用asp,php写了一个程序,功能为:读取MSSQL100条记录,50万次加法(整数运算)和20万次开方(浮点运算)。 Apache+php: 运行时间35ms 运行时间201.4ms 运行时间361.5ms IIS+php: 运行时间1003.8s 运行时间217.4s
asp实现关键词获取 各搜索引擎,gb2312及utf-8
不知道为什么现在各大搜索引擎编码居然不一样.当然不是gb2312就是utf-8了.编码问题是比较头疼的问题…头疼的不要命… 我们获得关键词,一般是通过来访页面的u…
ASP汉字转换UTF-8及UTF-8转换GB2312
汉字转换为UTF-8 function chinese2unicode(Str) dim i dim Str_one dim Str_unicode for i=1 to len(Str) Str_one=Mid(Str,i,1) Str_unicode=Str_unicodechr(38) Str_unicode=Str_unicodechr(35) Str_unicode=Str_unicodechr(120) Str_unicode=Str_unicode H
ASP函数-日期转换函数
Function FormatDate(byVal strDate,byVal strFormat) Accepts strDate as a valid date/time, strFormat as the output template. The function finds each item in the template and replaces it with the relevant information extracted from strDate. Yo