When we manage Web site files, we can put the same file name extension under the same directory, a more special names, such as the PDF file directory for the_pdf_file_s, save the following code as down.asp, his online path is http://www.xx.com/ Down.
ASP gets the current URL
ASP does not use functions like JavaScript to get the current URL directly, previously naïve to think that the ASP did not get the current URL method. But it has recently been found that it is possible. If LCase
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
Skills | Performance 19: Using 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
Ajax
For a long time did not write ASP, this time to write a message board really feel a little difficult, the competition has written a whole day, haha.There is nothing else to write, the use of three-layer structure (do not know, the original
Reference | function C#.net common small functions and method sets
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
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].
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 precautions
Visual C # IP related Operations class, to obtain the current client IP, to determine the IP format, that is, detect whether the IP address, some of the basic operation of IP, welcome C # Novice Reference:
01///
02///gets the IP of the current
Database is hanging horse I believe a lot of people have met. Here, I'll talk about the way I deal with it.
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
There is a program that is to add and remove elements from the application collection, as follows:
the Application object
the ASP application
If Len (Request.Form ("Cmdadd")) Then ' use whether length for 0来 judgment
Strvarname =
asp.net| Pagination | When the data is programmed in the ASP's database, because of the size of the browser, in order to see more data records, to achieve a more intuitive effect, we have these data records into several pages, through the data
Anti-Theft chain | anti-theft chain with ASP hidden file path to achieve anti-theft chain
If we know the actual path of a static file such as: Http://www.xx.com/download/51windows.pdf, if the server does not have a special limit set, we can
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
Dim Ip,ipstring,visitip' The IP address to be bannedIpstring= "|195.225.177.34|195.225.177.137|72.232.250.10|"' Get IP AddressIP = Request.ServerVariables ("Http_x_forwarded_for")If IP = "" ThenIP = Request.ServerVariables ("REMOTE_ADDR")End
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
function ' ======== get the URL with port, recommend to use ================
Function Get_scriptnameurl ()
If Request.ServerVariables ("server_port") = "Then"
Get_scriptnameurl= "http://" & Request.ServerVariables ("SERVER_NAME") &lcase
Submitting a Form | Submitting a Form
In order for the ASP to minimize server-side workloads, you should use JavaScript more, and submit all submitted fields to the server using JavaScript or VBScript, so that the server does not have to be tested,
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.