Principle
The acquisition program actually uses the XMLHTTP component in the XML to invoke pages on other web sites. For example, news acquisition program, many are called Sina's news page, and some of the HTML has been replaced, while the ads also
'/*=========================================================================
' * Intro Research Web page coding for a long time, because recently to design a link detection of the VBS script, and the person you link to the page is likely to be a
' Read the contents of the file.
Copy Code code as follows:
Function loadfile (ByVal File)
Dim objstream
On Error Resume Next
Set objstream = Server.CreateObject ("ADODB. Stream ")
If err.number=-2147221005 Then
Response.Write "
This is to escape LAKER2 brother check ASP Trojan horse program
Now that the challenge has been successful, it has been added to the test object. Published code to the freezing point of friends make, I hope you like!
The Adox.catalog component is
Copy Code code as follows:
1. To determine whether there is injection
; and 1=1
; and 1=2
2. Preliminary Determination of MSSQL
; and user>0
3. Injection parameters are characters
' and [query conditions] and ' = '
4. No filter
Copy Code code as follows:
' function: null-value Test
Function Inull (Val)
Dim tmp
TMP = False
If IsNull (Val) Then
TMP = True
ElseIf IsEmpty (Val) Then
TMP = True
ElseIf Trim (Val) = "" Then
TMP = True
End If
Inull = tmp
End
'**************************************************************
'-------------------------------------------------------------
' First parameter
' Can be a table name, or it can be an SQL statement
'--------------------------------------------------
Let's take a look at the official introduction.
Using forms to collect user input is a recurring task in WEB development. A set of forms used to accomplish a task is often called a wizard. The ASP.net Wizard control simplifies many of the tasks
The ListBox control allows a user to select one or more items from a predefined list. It differs from the DropDownList control in that it not only displays multiple items at once, but optionally allows the user to select more than one item at a time.
The ASP.net ImageMap control allows you to create an image that contains a number of areas (hot zones) that can be clicked by the user, which are called "Action points." Each action point can be a separate hyperlink or postback event.
Common
Copy Code code as follows:
Function Splitx (strs1 As String, strs2 as String, n as Integer)
' Custom segment function Splitx ([string], ' delimiter ', nth paragraph)
Dim groupst () as String
Groupst = Split (strs1, Strs2)
If UBound
DropDownList WEB server controls enable users to select an item from a predefined list. It differs from the ListBox Web server control in that its list of items remains hidden until the user clicks the Drop-down button. Also, the difference between
XML is the standard extensible language, is the future of Web programming standards, ASP is now widely circulated in one of the Web programming language, can not let themTwo together to play a role? Tofu is here to provide a very simple exampleAbout
Force Refresh Page
Determine if the file address is valid
0 Then Response.Write ("" & II & "X") Else Response.Write ("" & II & "√") End If Next if Err then err . Clear Response.Write ("met the accident!; Error reason:
One way to take advantage of Excel in ASP is to link an Excel file as a database, and then do something similar to an Access database operation. But this method is not always useful, and Excel is not a relational database. For a fixed format, there
After so many years of computer, the first time to write articles online! I laughed.
Program Purpose: The job needs, inquires the enterprise registration data friend too many, saves the trouble, has added the inquiry function on the website,
When passing parameters in ASP, there is a useful system function Server.URLEncode, you can convert some non-alphanumeric special symbols to the standard URL encoding (in fact, the 16 ASC code), which solves the problem of parameter passing, and
This code can control the common search engine cannot access the ASP page, need to include this code in each ASP page.
0) then isspider=true Next End Function Function Fromse () Dim urlrefer,searray,i Urlrefer= "refer:" &lcase (Request).
ASP development may sometimes use a large segment of if ... else, but if the content of dynamic Response.Write, you want to more convenient to read the code, you can use Response.End () to the implementation of ASP, also similar to the use of break,
The scripting.dictionary of VBScript creates a Dictionary object that is similar to the value of the key index, indexed directly to the specified value.
Examples of scripting.dictionary use in VBScript are as follows:
Copy Code code as
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service