Time of Update: 2017-01-18
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <title>雲棲社區 >> 手機號碼查詢 </title> <meta name="generator" content="雲棲社區"> <style
Time of Update: 2017-01-18
作者: 孫立 Email: 17bizAT126.com 寫於:2006/3/5 著作權聲明:可以任意轉載,轉載時請務必以超連結形式標明文章原始出處和作者資訊及本聲明 http://sunli.cnblogs.com/archive/2006/03/05/343095.html 關鍵詞:ASP 模板
Time of Update: 2017-01-18
******************** '函數作用:根據條件真假返回選定值中的某個 '參數:blnCondition:條件變數,varResultTrue:條件為真時傳回值,varResultFalse:條件為假時傳回值 Function IIF(blnCondition, varResultTrue,varResultFalse) If CBool(blnCondition) Then
Time of Update: 2017-01-18
前言 常有人希望在某個特定時間,可以自動某支 ASP 程式,進行某項作業,比如:發電子信、資料庫整理等。 方法 一、你可以去找 aspexe 元件來使用 二、你可以使用 WSH的方式來處理。以下文章是轉載至某個大陸網站(我已經忘了出處了~) WSH 基本上和 ASP 的寫法是一樣的除了
Time of Update: 2017-01-18
By zkxp 2/15/2006 http://zkxp.cnblogs.com ‘受屏蔽IP地址(段)集合,星號為萬用字元,通常儲存於設定檔中。 <% Const BadIPGroup = "220.200.59.136|220.205.168.141" If IsForbidIP(BadIPGroup) = True Then
Time of Update: 2017-01-18
近段時間看了一些論壇上面關於分頁的ASP程式依然有許多的粉絲,但裡面只有代碼,沒有詳細的解釋,對於初學者來說,這樣總是得不到真正的掌握,此次我將針對分頁技術進行詳解,讓大家來理解ASP分頁,好了,一起來對分頁程式來次透徹的瞭解吧!首先,來看看示範
Time of Update: 2017-01-18
<% '****************************** '函數:CheckQuery(ByVal str) '參數:str ----搜尋的字串 '作者:阿里西西 '日期:2007/7/15 '描述:限制搜尋的關鍵字 '樣本:CheckQuery(str) '****************************** Public Function CheckQuery(ByVal str)
Time of Update: 2017-01-18
過濾關鍵字<% '****************************** '函數:ChkKeyWord(ByVal keyword) '參數:keyword,關鍵字 '作者:阿里西西 '日期:2007/7/15 '描述:過濾關鍵字 '樣本:ChkKeyWord("sfsdfdf'8&5ddd") '****************************** Function ChkKeyWord(ByVal keyword)
Time of Update: 2017-01-18
<% '****************************** '函數:workdays(date_begin , date_end) '參數:date_begin,開始日期;date_end,結束日期 '作者:阿里西西 '日期:2007/7/15 '描述:計算兩個時間內的工作日 '樣本:workdays("2007-05-18" , "2007-05-21") '****************************** function&
Time of Update: 2017-01-18
<% '****************************** '函數:Generator(Length) '參數:Length,任意長度的數值,隨機碼位元 '作者:阿里西西 '日期:2007/7/15 '描述:產生任意英文+數字位元長度的隨機碼函數 '樣本:Generator(80) '****************************** Function Generator(Length) Dim i, tempS
Time of Update: 2017-01-18
<% '****************************** '函數:MultiPage(Numbers,Perpage,Curpage,Url_Add) '參數:Numbers,總記錄數;Perpage,每頁記錄數;Curpage,當前頁;Url_Add,當前頁其它參數如?action=list& '作者:阿里西西 '日期:2007/7/15 '描述:ASP通用分頁樣式函數 '樣本:MultiPage(100,10,2,"?action=list&") '************
Time of Update: 2017-01-18
<% '****************************** '函數:HTMLEncode(reString) '參數:reString,待編碼轉換處理的字串 '作者:阿里西西 '日期:2007/7/15 '描述:對HTML代碼進行轉換 '樣本:HTMLEncode("<p>歡迎訪問<br>阿里西西</p>") '****************************** Function HTMLEncode(reString) &
Time of Update: 2017-01-18
<% '****************************** '函數:CheckStr(byVal ChkStr) '參數:ChkStr,待驗證的字元 '作者:阿里西西 '日期:2007/7/15 '描述:對SQL注入危險字元進行重編碼處理 '樣本:CheckStr("and 1=1 or select * from") '******************************
Time of Update: 2017-01-18
<% '****************************** '函數:SendMail(MailtoAddress,MailtoName,Subject,MailBody,FromName,MailFrom,Priority) '參數:MailtoAddress,內送郵件地址;MailtoName,接收者姓名;ubject,主題;ailBody,郵件內容;FomName,主送姓名;ailFrom,主送郵件地址;riority,郵件等級 '作者:阿里西西 '日期:2007/7/13
Time of Update: 2017-01-18
<% '****************************** '函數:IsObjInstalled(strClassString) '參數:strClassString,組件對象名 '作者:阿里西西 '日期:2007/7/13 '描述:檢測組件是否安裝 '樣本:<%=IsObjInstalled(strClassString)%> '******************************
Time of Update: 2017-01-18
<% '****************************** '函數:CheckString(strng) '參數:strng,待驗證字串 '作者:阿里西西 '日期:2007/7/13 '描述:檢測字串是否為純字母和數字組合 '樣本:<%=CheckString(strng)%> '****************************** Function CheckString(strng)
Time of Update: 2017-01-18
'********************************************************* '函數:IsValidEmail[str] '參數:str,待處理的字串 '作者:木木 '日期:2007/7/12 '描述:檢測郵箱格式是否為xxxx@xxx.com或者xxxx@xxx.com.cn等格式 '樣本:<%=IsValidEmail(ali@alixixi.com)%> '*****************************************
Time of Update: 2017-01-18
<% '****************************** '函數:FormatFileSize(l1) '參數:l1,位元組數 '作者:阿里西西 '日期:2007/7/12 '描述:格式檔案大小樣式 '樣本:<%=FormatFileSize(l1)%> '****************************** function FormatFileSize(l1) dim l2,l3
Time of Update: 2017-01-18
asp 字串截取函數'********************************************************* '函數:cutStr[str(strlen)] '參數:str,待處理的字串,strlen,截取的長度 '作者:木木 '日期:2007/7/12 '描述:截取指定長度的字串 '樣本:<%=cutStr("歡迎光臨阿里西西",5)%> '****************************************************
Time of Update: 2017-01-18
<% '****************************** '函數:bbimg(l1,maximgheight,maximgwidth) '參數:l1,圖片路徑;maximgheight,最大允許圖片高度;maximgwidth,最大允許圖片寬度 '作者:阿里西西 '日期:2007/7/12 '描述:限制頁面圖片的最大高度和寬度 '樣本:<%=bbimg("alixixi.gif",300,100)%> '******************************