-
-
aspAsp在任意几个数字中求最大值与最小值函数
<% Function Max(Price) Dim n, m If UBound(Price) > 0 Then m = Price(0) For n = 1 &...
asp / 2016-02-05
-
-
aspASP通过FLASH批量上传(CFUpdate)
演示效果: 获取上传图片 function challs_flash_onCompleteData(a){ //获取服务器反馈信息事件 document.getElementById('PicName').value+=','+a; } 将Flash包含在表单...
asp / 2016-02-05
-
-
aspasp生成英文+数字可控制位数长度的随机码函数
<% '****************************** '函数:Generator(Length) '参数:Length,任意长度的数值,随机码位数 '描述:生成任意英文+数字位数长度的随机码函数 '示例:Generator...
asp / 2016-02-05
-
-
aspasp生成随机字符串(大写)
function makeId(byVal maxLen) Dim strNewPass Dim whatsNext, upper, lower, intCounter Randomize For intCounter = 1 To maxLen whatsNext = Int((1 - 0 + 1) * Rnd + 0) If whatsNext = 0 Then upper = ...
asp / 2016-02-05
-
-
aspasp随机读取其中一个手机号函数
function getsj(str) dim arrstr,n arrstr=split(str,",") if ubound(arrstr)>0 then Randomize n=Int((ubound(arrstr)+1 - 0) * Rnd + 0) getsj=arrstr(n) else getsj="" end if end function 调用...
asp / 2016-02-05
-
-
aspasp防止SQL注入
主要是防asp的几个地方: 一、地址栏参数注入,就是用request.querystring取得值的这个 二、表单参数注入,就是用request.form取得值的这个 三、cookies 其实可以看成一个理儿,就是能输入值,能交互的...
asp / 2016-02-05
-
-
aspasp 过滤非法字符函数
<% Function cutbadchar(str) badstr="反|对|不|文|明|行|为" badword=split(badstr,"|") For i=0 to Ubound(badword) If instr(str,badword(i)) > 0 then str=Replace(s...
asp / 2016-02-05
-
-
aspasp中获取当前页面的地址与参数的函数
<%Function getCurrentUrl() On Error Resume Next Dim strTemp If LCase(Request.ServerVariables("HTTPS")) = "off" Then strTemp = "http://" Else strTemp = "htt...
asp / 2016-02-05
-
-
数据库Access中select top n显示条数无效的解决办法
查询语句: select top 10 id,title,subdatetime from newstable order by subdatetime desc 按理论显示应该是10条,但实际数据库中有22条,原因是数据库中有subdatetime字段值相同的记录 解决办法:查询语句改成...
数据库 / 2016-02-05
-
-
aspASP利用COOKIES判断多少时间内只能提交一次数据
dim SetTime TimeSet = 3600 if Request.Cookies("thisTime")<>"" Then Response.Write "<script>alert('您提交动作太频繁了,1小时内只能提交一次评论。谢谢合作');history.go(-1);</scrip...
asp / 2016-02-05