Asp.net| Counter | page See a very simple counter that might be useful
Before I introduced the System.IO space under the file Operation object, here I explain how to make the counters that apply to a particular page. Each counter requires a
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
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
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
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
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
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
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
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
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
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
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
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
Dim lanLan=request.servervariables ("Http_accept_language")
Select Case 1
Case InStr (LAN, "ZH-CN")Response.Redirect ("http://www.3lian.com//cn/index.asp tutorial")' Judge whether the client is Chinese simplified, if it is turned to/cn/index.asp
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
Based on IP to judge, will automatically jump to the visitor's IP according to the location of the city's local substationThe reference code is as follows:
Function lookaddress (SIP)Dim str1, str2, STR3, STR4Dim numDim IRSIf IsNumeric (Left (SIP, 2)
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
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
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.