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)
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
1. How to use ASP to determine the virtual physical path of your website
Answer: Using the MapPath method
< p align="center" >< font size="4" face="Arial" >< b > The Physical path to this virtual website is: < /b >< /font > < font color="#FF0000"
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
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
IP Address |vbscript| Program "
untitled document
Dim finishgetip,showip,allip
''////////////////////////////////////////////////////////////////////////////////////////
"The procedure is not very concise, and later modified
' The database used
web| Program | dynamic | Server with the increasing popularity of flash, flash in the web development above but the performance, since it is web-site, it is certainly inseparable from the basic HTML page, The following is my usual in the production
Exception class Exception:
Class ExceptionPrivate IwindowPrivate ITargetPrivate ItimeoutPrivate ImodePrivate IMessagePrivate IhaserrorPrivate Iredirect Public Property Let Window (ByVal Value)Iwindow = ValueEnd PropertyPublic Property Get Window
1. How to use ASP to determine the virtual physical path of your websiteAnswer: Using the MapPath methodThe physical path to this virtual website is:
2. How do I know the browser used by the user?Answer: Use the Request object
Tips | Client
This procedure belongs to 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
Learning ASP, the most important thing is to master the ASP built-in six large objects. In fact, in the last lecture, we have already learned about the response object (yes?). There's no mistake! ), and the most commonly used write method, redirect
Text counter
function: All IP addresses that have visited this page
Implementation method: The IP address that has visited this webpage is stored in the count.asp, every once in a while, check, login to this site IP address, if not in the count.asp,
Error
The earlier part of this chapter shows some of the issues, including how errors occur, how to find errors, how to handle errors, and so on. It is more important now to master the different kinds of errors that can occur and how to distinguish
Web page ASP to achieve a simple web protection function (turn)
When it comes to security, you'll be tempted to think of a professional security software like a firewall, hard to have software to achieve the goal of security protection? No, here
Some days before the server sent a number of posts, want to ask about the path of the problem, but also has not replied. In fact, my concept of the path has been relatively vague, and then also introduced the ServerVariables data collection, so that
ASP get the current page with parameters of the address (URL) method
The following is a reference fragment:' ===========================================' Get the function of the current URL parameterFunction GetUrl ()Dim Scriptaddress,
The program introduced in this article mainly realizes the function of automatically jumping to the specified page according to the IP address or address segment or the city where the IP is located, and the friends who need it can refer to the
Skill 1. Oncontextmenu= "Window.event.returnvalue=false" will completely mask the right mouse button
no available for table
2. deselect, prevent copying
3. onpaste= "return false" is not allowed to paste
4. oncopy= ' return false; ' oncut= '
Error | Admin Below is based on Wrox Professional ASP 3.0 to establish the site error checking mechanism, after use, you can find a lot of their mistakes, save a lot of code testing time, why not!
First set up the table:
CREATE TABLE [dbo].
Recently, the author of the station suffered to SQL intrusion, so the Internet search some related methods to prevent SQL injection.
A lot of versions, some people think that this section is good, some people think that the paragraph just, so the
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.