This approach is appropriate for accessing a Web site that is relatively centralized on the same content page, automatically generating a cached file (equivalent to reading a static page, but increasing the file). If the access is not centralized,
ADO objects:Connection
Command
Recordset
Record
Stream
ASP supports a lot of objects, you can write their own COM components, the following are often used:
Server.CreateObject ("Scripting.FileSystemObject")
Server.CreateObject
In the ASP.net MVC4 (should also have in the WebForm), there is a thing called bundle, it is used to compress JS and CSS (multiple files can be packaged into a file), and can distinguish between debugging and debugging, debugging without compression,
1. ByVal value: A way to pass a parameter value instead of the address to a procedure, which makes the procedure accessible to a copy of the variable. As a result, the process cannot change the true value of the variable.2. ByRef value: A way to
always prompt when accessing ASP Web site: "500-Internal server error." There is a problem with the resource you are looking for and cannot be displayed. "
The above shows the friendly error of IIS, the following steps to display detailed errors!
A few days ago, in order to enhance the site's SEO, set about another domain name: www.kanshule.com under the 301 turn to www.jb51.net under the page.
Since the site currently has only one blog, so from the beginning of the blog.
The idea is very
'******************************
' Function: Getmax (str)
' Argument: str, an array of numbers to be processed, separated by a number of
' Author: Arisisi
' Date: 2007/7/12
' Description: Gets the maximum value in the array
' Example:
'**************
'******************************
' Function: Getusertrueip ()
' Parameters: None
' Author: Arisisi
' Date: 2007/7/13
' Description: Obtain the user real IP, the proxy address is still valid; return value: The IP address of the text type
' Example:
'*
Example of an ASP string functionUse String functions to truncate the string to the end, case substitution, and so on.
Function
Grammar
Function
Len
Len (String|varname)
Returns the number of
The function used to prevent SQL injection attacks can be used directly, but we will not use it, but we need to enhance our safety awareness.
Copy Code code as follows:
'==========================
' Filter the SQL in the submission form
To do a cache-cleaning function in the Web site (that is, to force the cache to expire before the cache expires), some places in the program use the Httpruntime.cache cache, and the database interaction part uses the caching mechanism provided by
The web.config file is an XML text file that stores configuration information for ASP.net Web applications (such as the most common settings asp.net the way the Web application is authenticated) and can appear in every directory in the application.
The example in this article describes the method by which ASP.net gets the server-specified folder directory file and provides downloads. Share to everyone for your reference. The implementation methods are as follows:
Copy Code code as
We all know that the verification code is displayed in the form of pictures, and is dynamically generated, so that we need to draw it, it has to mention is GDI + drawing
Popular science, what is GDI +?GDI + is an advanced version of the Graphics
The example in this article describes how jquery+ajax+asp.net gets the JSON value. Share to everyone for your reference, specific as follows:
jqueryajaxjson Value Example
Ajax Post Text function SaveData (tempid) {var tid = $
In a business complex application, it is sometimes required that one or more tasks be scheduled for a certain amount of time or time interval, such as a scheduled backup or synchronization of a database, a timed email, etc., which we call a
Today, I met the problem and studied it. To solve this problem, we must first understand some of the mechanism of the session. Session in the server is in the form of a hash table, we all know that sessions are conversational level, each user access
One, Super linkThe easiest way to get to another form from one form is to use the HTML Hyperlink control. In Web Forms, HTML code classes that use hyperlinks are as follows:
Copy Code code as follows:
Entry Form 2
When the
in the network card a random search: asp.net client IP
Many pages can be searched, and the code provided is basically similar to the following:
Copy Code code as follows:
if (request.servervariables["Http_via"]!= null)
return
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