欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

asp下經(jīng)常用到的代碼

 更新時(shí)間:2008年01月09日 13:45:45   作者:  
點(diǎn)擊提示“確定”與“取消”提示框,主要用于刪除確認(rèn)
點(diǎn)擊提示“確定”與“取消”提示框
onclick='{if(confirm("您確定刪除嗎?此操作將不能恢復(fù)!")){return true;}return false;}'


刪除.LDB文件
<%
Application.Contents.Removeall()
%>

將HTML格式轉(zhuǎn)換為純文本格式
<%  
Function RemoveHTML(strHTML)  
 Dim objRegExp, Match, Matches     
 Set objRegExp = New Regexp  

 objRegExp.IgnoreCase = True  
 objRegExp.Global = True  
 '取閉合的<>  
 objRegExp.Pattern = "<.+?>"  
 '進(jìn)行匹配  
 Set Matches = objRegExp.Execute(strHTML)  

 ' 遍歷匹配集合,并替換掉匹配的項(xiàng)目  
 For Each Match in Matches     
     strHtml=Replace(strHTML,Match.Value,"")  
 Next  
 RemoveHTML=strHTML  
 Set objRegExp = Nothing  
End Function  

%>
調(diào)用
<%=RemoveHTML(你的字段)%>


25、當(dāng)前頁(yè)地址
<% 
response.write "http://"&Request.ServerVariables("server_name")&Request.ServerVariables("script_name") 
%>

相關(guān)文章

最新評(píng)論