System log and exception handling ②
In the last lecture we did a list of the results of the log and the exception, this section we are talking about to put in his application system.
First we create a generic class Resulthelper in the App.common
Request| Object | client | Data on the order of the Request object in ASP to get the client data
/**
Description: Small issues to be aware of when using ASP request objects
Author: Ci Qin Qiang
Email:cqq1978@yeah.net
**/
The request object in ASP
Request Object
Author: Sage of the Rice Fairy
The request object is to get the data that the client browser sends to the server, which means you get information from visitors to your ASP. The Request object (requested object) contains five sets of
Generic anti-SQL Injection code ASP edition
Code
Dim sql_injdata
Sql_injdata = "' |and|exec|insert|select|delete|update|count|*|%| Chr|mid|master|truncate|char|declare "
Sql_inj = Split (Sql_injdata, "|")
If request.querystring<> "" Then
For
access| Data | database | Problems you usually do most of the site using SQL database, so there is no contact with Access database sites. Yesterday, when I was helping my friends with a Web site Admin program using an Access database, I got into
Error | Troubleshooting error message:
Microsoft OLE DB Provider for ODBC Drivers error ' 80004005 ' [microsoft][odbc Microsoft Access Driver] the Microsoft Jet Databaseengine cannot open the file ' (unknown) '. It is already opened exclusively by
Web
Passport to your website (top)
-------(Achieve Ms Passport on your website)
Stingy God, 2001-11-12
Article type:in-depth
Difficulty level: 4/9
Version: 1.01
Passport first appeared in 1999, when only to meet Ms acquired Hotmail as a
Author: pizzaviatSource: Eighth RegimentHow to better achieve the prevention of hacker attacks, I mention personal views! First, the free program does not really have a fee, since you can share the original code, then the attacker can analyze the
As we all know, the way to get an IP address is
The following are the referenced contents:
But if the client uses the proxy server, then uses this method to obtain is the proxy server's IP, below is penetrates the server
Now, on the Internet to do a survey is very common, many commercial Web sites often have a variety of theme of the survey Board, some commercial sites are free to provide users with research boards, such as: Broad (poll.bodachina.com). Because of
Client This procedure is a special method. The scope of use is relatively limited, and there is a certain risk. Borrowed from the ASP in the back door of some methods. The following is the program code.
Dim remoteaddr
If Request.ServerVariables
To obtain a client's real IP address through a proxy server, use Request.ServerVariables ("Http_x_forwarded_for") to read it. However, it should be noted that not every proxy server can use Request.ServerVariables ("Http_x_forwarded_for") to read
Tip 19: Use the browser's validation capabilities
Today's browsers provide support for advanced features such as XML, DHTML, Java applets, and remote Data services. Use these features whenever possible. All of these technologies can perform
Cookie|session and understanding of Session and Cookie
First session.
The debate on the session seems to have never stopped, but the people who can understand the session should account for more than 90. But tell me, don't be too old
Some people
The main purpose of setting up a firewall for a Web page is to provide different services to different visitors based on the content of the Web page, which we can easily do with Java script or VB script. But the source of the Web page in the client
A relatively simple page, similar to the CSDN forum on the left of the NS list
Description:
1.
Data name: Tree.mdb
table name: Tree
table structure: ID (self-edited) PID (digital) content (text) link (text)
2.
Pictures: Endnode.gif
Onlinetimeout=10 ' defines the time interval for online activity timeFunction Userip ()Getclientip = Request.ServerVariables ("http_x_forwarded_for") ' "," "'", "'", "" "", "" "," "" to obtain the user's virtual IP addressIf Getclientip = "" or
Restrict users from using "Show in New Window" Jump out of your structure (MSDN)
If a website is designed as a structure, it means that you don't want others
Jump out of this structure and display a single frame in the browser. However, in NC
One
IP Address |vbscript| Program "
untitled document
Dim finishgetip,showip,allip
''////////////////////////////////////////////////////////////////////////////////////////
"The procedure is not very concise, and later modified
' The database used
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