ASP編程中15個非常有用的例子_ASP教程
推薦:asp當(dāng)中判斷函數(shù)一覽最新的WEB源碼下載,馬上去看看... 商業(yè)源碼熱門下載www.chinaz.com <1>IsArray 函數(shù) 返回 Boolean 值指明某變量是否為數(shù)組。 語法 IsArray(varname) varname 參數(shù)可以是任意變量
1.如何用Asp判斷你的網(wǎng)站的虛擬物理路徑
答:使用Mappath方法
| 以下為引用的內(nèi)容: <p align="center"><font size="4" face="Arial"><b> The Physical path to this virtual website is: </b></font> <font color="#FF0000" size="6" face="Arial"> <%= Server.MapPath("\")%> </font></p> |
2.我如何知道使用者所用的瀏覽器?
答:使用the Request object方法
| 以下為引用的內(nèi)容: strBrowser=Request.ServerVariables("HTTP_USER_AGENT") If Instr(strBrowser,"MSIE") <> 0 Then Response.redirect("ForMSIEOnly.htm") Else Response.redirect("ForAll.htm") End If |
答:解決方法
| 以下為引用的內(nèi)容: <% startdate=DateDiff("d",Now,"01/01/1990") if strdate<0 then startdate=startdate*-1 avgvpd=Int((usercnt)/startdate) %> 顯示結(jié)果 <% response.write(avgvpd) %> that is it.this page have been viewed since November 10,1998 |
答
| 以下為引用的內(nèi)容: 〈% dim p,ppic,dpic ppic=12 randomize p=Int((ppic*rnd) 1) dpic="graphix/randompics/"&p&".gif" %> 顯示 〈img src="<%=dpic%>>"> |
5.如何回到先前的頁面
答:
| 以下為引用的內(nèi)容: <a href="<%=request.serverVariables("Http_REFERER")%>">preivous page</a> 或用圖片如 <img src="arrowback.gif" alt="<%=request.serverVariables("HTTP_REFERER")%>"> |
分享:網(wǎng)站安全:防范ASP木馬的十大基本原則由于ASP它本身是服務(wù)器提供的一貢服務(wù)功能,asp木馬高度的隱蔽性和難查殺性,對網(wǎng)站的安全造成了嚴(yán)重的威脅。因此針對ASP木馬的防范和清除,為網(wǎng)管人員提出了更高的技術(shù)要求. 幾個大的程序全
- asp FSO 讀寫文件本文件實現(xiàn)代碼
- asp中isNull、isEmpty和空字符串的區(qū)別
- asp獲取用戶真實IP地址的方法
- asp連接sqlserver數(shù)據(jù)庫實現(xiàn)代碼
- asp中正則表達(dá)式過濾html代碼函數(shù)
- asp中g(shù)et post提交表單區(qū)別
- 網(wǎng)頁模板:ASP內(nèi)建對象Request
- xmlhttp的open方法使用詳解
- ASP的常用的自定義函數(shù)大全
- asp中用for循環(huán)的一個小技巧
- eWebEditor v3.8 列目錄
- ASP無組件分頁實現(xiàn)思路及代碼
- 相關(guān)鏈接:
- 教程說明:
ASP教程-ASP編程中15個非常有用的例子
。