推薦:ASP錯誤代碼說明錯誤代碼 錯誤消息 說明 ASP0100Out of memory 內存不足(不能分配要求的內存ASP0101 Unexpected error 意外錯誤 ASP0102Expecting string input 缺少字符串輸入 ASP0103 Expe
第一種方法:
如果有有一個ASP空間,而你又想放置多個多個站點,這些代碼可以幫到你:
以下為引用的內容: 第一個 <%if Request.ServerVariables("SERVER_NAME")="www.netbei.com" then response.redirect "zkj" else response.redirect "i.htm" end if%> 第二個 第三個 第四個 |
以下為引用的內容: 第二種方法:
<%
dim domainname,result
domainname=Request.ServerVariables("SERVER_NAME")
result=right(domainname,12)
if result="my.netbei.com" then
%>
<!--#include file=mynetbei.asp -->
<%
Elseif result="rtisancn.com" then
%>
<!--#include file=artisan.asp -->
<%
Elseif result="gn.netbei.com" then
%>
<!--#include file=web.asp -->
<%
Elseif result=".forwest.com" then
%>
<!--#include file=forwest_com.asp -->
<%
Else
%>
<!--#include file=netbei.asp -->
<%
End if
%>
請作者聯系本站,及時附注您的姓名。聯系郵箱:CuoXIn#vip.qq.com(把#改為@)。
分享:ASP基礎教程之ASP程序對Cookie的處理cookie常用來對用戶進行識別。實例: 以下為引用的內容: <%dim numvisitsresponse.cookies("NumVisits").Expires=da
新聞熱點
疑難解答