ASP is an application that replaces CGI scripting programs and is a simple and convenient programming tool. I believe many friends don’t know much about ASP. So let’s take a look at the commonly used code introduction under Asp. Friends who want to know it, let’s take a look.
Click the prompts "OK" and "Cancel" prompt boxes
onclick='{if(confirm("Are you sure to delete? This operation will not be restored!")){return true;}return false;}'
Delete .LDB file
<%
Application.Contents.Removeall()
%>
Convert HTML to plain text format
<%
Function RemoveHTML(strHTML)
Dim objRegExp, Match, Matches
Set objRegExp = New Regexp
objRegExp.IgnoreCase = True
objRegExp.Global = True
'Pick the closed<>
objRegExp.Pattern = "<.+?>"
'Make a match
Set Matches = objRegExp.Execute(strHTML)
' traverse the matching collection and replace the matching items
For Each Match in Matches
strHtml=Replace(strHTML,Match.Value,"")
Next
RemoveHTML=strHTML
Set objRegExp = Nothing
End Function
%>
Call
<%=RemoveHTML(your field)%>
25. Current page address
<%
response.write "http://"&Request.ServerVariables("server_name")&Request.ServerVariables("script_name")
%>
This is the introduction to the commonly used code under Asp. I believe everyone has a certain understanding. If you want to know more technical information, please continue to pay attention to the wrong new technology channel!