Web| Program | performance | page
I have such a small program: ASP + sqlserver2000.The amount of data increased very quickly, recently found that its performance is very poor, every time it takes more than 10 seconds, or even dozens of seconds,
In the last two lectures, we explained the basic use of databases in ASP, and today we will introduce several very practical techniques.
First, paging technology
We described how to retrieve data and output it to the browser side. For a small
Error | show | Original ASP program error, error tip is not very clear understand, let a person touch the mind, use the following method to see if there is no help (this method is currently only suitable for errors outside the ADO error)
Step one,
In the current Web site statistics System is most of the CGI, but the writing is particularly complex, and the ASP to learn simple, more and the advantages of combining the database, so the combination of their own has done the site statistics
Function 1, DateTime digital type
System.DateTime currenttime=new System.DateTime ();
1.1 to take the current month and the day seconds
Currenttime=system.datetime.now;
1.2 Take as the year before last
int year =currenttime.year;
1.3 Take the
Program | dynamic
One, Enable Web sites and users to interactYou can make a Web page like senduserinfo.htm, just use the Change to can transmit the data you submit to userinfo.asp processing.
Userinfo.asp's source code request.form ("UserName"),
Function
1, DateTime Digital typeSystem.DateTime currenttime=new System.DateTime ();1.1 to take the current month and the day secondsCurrenttime=system.datetime.now;1.2 Take as the year before lastint year =currenttime.year;1.3 Take the current
Safety
How 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 code. If you pay attention to
Active|server
Active Server Page (ASP) frequently sees problems
""active Server page"the following simple"asp""
Question: How to save a user to a session variable (NEW)
Question: ServerVariables ("LOGON_USER") Go Home Value (NEW)
Question:
Virtual directory
Automate the creation of a virtual directory using ADSI, ASP, and a pair of magic tricks, Part IITom Moran and Jeff sandquistFebruary 22, 1999
We're back. The second part of this article, which is eagerly awaited, is now here.
Addheader|object
AddHeader
The AddHeader method adds an HTML caption with the specified value. This method often adds a new HTTP caption to the response. It does not replace an existing title with the same name. Once the caption is added, it cannot
The main idea is to use Request.ServerVariables collection to get Http_referrer, and then based on the value of this variable to determine whether the link from the outside, block illegal links.First, we need to make the following reference to the
Xml
One, the realization method
A function that writes the log, provides several parameters, the user program calls this function can implement log record. Log to the XML file, the log file is generated by date, a new log file is created every day,
Program | Attacks now web-based attacks are generally injected. The cause of the injection is generally incomplete filtering of the variable, which allows the intruder to execute the program or query to modify arbitrary data illegally. With the
Database is hanging horse I believe a lot of people have met. Here, I'll talk about the way I deal with it.
First step: Make a backup of the existing database.
The second step: the implementation of the following ASP file, so you can remove the
Answer | Question 1. Prevent users from accessing the page directly (prevent self-made form submission and access directly via link)
function Checkprepage ()
Url=request. ServerVariables ("Http_referer")
Url=trim (replace (URL, "http://",
With the popularization of the network, online survey can often achieve better results. In their own personal site to put a fun problem investigation board, indeed for the site Tim a lot of, and through the results of the survey you can more
window| Security | Online IIS security Verification mechanism is done very well, we can use ASP security authentication to the Windows 2000 Manager password online modification.
When someone logs on to the site, use the Login_user in the
Web|web Service |web Server | Trojan Horse with the development of ASP technology, network based on ASP technology to develop more and more web sites, the support of ASP technology can be said to be a Windows system IIS Server a basic function. But
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.