Recently collated Asp/vbscript code, found in the past an ASP implementation of the MVC framework, unfortunately is a semi-finished product, efficiency is also a problem, but found that some of the code I wrote, feel still slightly can be brought
I. Uploading files and duplicate file processingthe principle of file processing is not to save the file in the database, only to save the file information (hash value, etc.) in the database. Take the file MD5 rename file in general enough to deal
DateDiff function
Describe
Returns the time interval between two dates.
Grammar
DateDiff (interval, date1, date2 [, firstdayofweek][, FirstWeekOfYear]])
The syntax for the DATEDIFF function has the following parameters:
Parameter
Common syntax and functions of #TITLE =asp#INFOSome common syntax and custom functions of ASP#SORT =n
#T = ===asp commonly used grammar = = =#T =============================#T = Database Related#T = Connect to an Access databaseDim
Trojan principle: The intruder uses such tools such as ASP Picture Trojan Generator to merge a normal picture with an ASP Trojan file into a picture file (will be harmful to the site
The ASP code inserts in the picture code, although the picture
Today, an ASP site copy to the 64-bit Windows7, IIS7 installation is no problem, but is not run, always appear adodb.connection error "800a0e7a", really strange, before running a little problem in XP. Originally thought is the reason of the code, so
This article is a VB-generated DLL that encapsulates ASP code to connect to a database (for example, in an Access database).
In general, when we use ASP to connect to an Access database, we typically do the following:
'//proconn.asp
Dim
The example in this article tells you that ASP.net uses page breaks in the FCK editor to implement a long article paging feature. Share to everyone for your reference, specific as follows:
A cookie is a text string handle sent to a client's browser and saved on the client's hard disk to persist data between sessions of a Web site. Both the request and response objects have a set of cookies. The Request.cookie collection is a series of
Grammar
ASP.net introduces a new declarative syntax, . This syntax is the basis for using data binding in an. aspx page. All data-binding expressions must be contained in these characters. The following list contains examples of simple data binding
A robust and practical Ajax two-level linkage menu (with demo and source package download)
Some days in the background of the time to use the two-level linkage of the menu, to the Internet to find a half-day also did not find satisfaction,
Note: Recently in review asp.net, in order to deepen the impression, will make some small demo program, share to everyone.
1 new asp.net web site, edit the Global.asax file, the modified file as shown below.
2 Modify the Web.config
The usual use scenario is when we have a page that requires a user to log in to access, we will in the code to determine whether the current access user is logged in, if not logged in, then redirect to the login page, and the current URL through the
There are a number of ways to introduce JavaScript in asp.net. In the beef brisket when the main talk about two kinds.
Personal opinion can be divided into direct introduction, and indirect introduction.
first, Direct introduction。 Invoke a custom
1, for a asp.net database connection pool, you can configure a link pool as a link string using a set of name-value pairs. For example, you can configure whether the pool is valid (default is valid), the maximum and minimum capacity of the pool, and
1. Download the latest version of Freetextbox (version 3.1.6), decompression
Freetextbox 3.1.6 (2007/10/17)
Author website Download Address: http://freetextbox.com/download/
What improvements and modifications are available in the detailed version
The effect and control of printing is not very good, but can also be used reluctantly, to deal with the general printing is OK.
The code looks like this:
Code
Copy Code code as follows:
Call PRINTCONTROL.EXECWB (?,?) Enables direct
ASP is an abbreviation for "Active Server Page", meaning "active servers Web pages." ASP is an application developed by Microsoft to replace the CGI script program, it can interact with database and other programs, it is a simple and convenient
Macromedia Dreamweaver MX is a professional HTML editor for designing, coding, and developing Web sites, Web pages, and Web applications. Whether you are willing to enjoy the mastery of hand-written HTML code or a preference for working in a visual
Digression: Last year to this year, has written some original articles, many are the original project summary. So not very system is very comprehensive, is aimed at a certain knowledge point or a specific application to write, some friends suggested
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