IIS default error page is very unfriendly, many people see the default error page will say: The site can not open! Lost this part of the flow in vain. And if the error page directly to the home page and search engine is very unfriendly, not good
1, database connection.
ASP to connect to an Access database:
ASP to connect to SQL database:
The DW uses string concatenation code:
"Driver={microsoft Access Driver (*.mdb)};D bq= Absolute path to the database"
When you are done, open the
Just started to do Excel related projects, so the problems encountered regardless of size are recorded
By chance, when you add data, you change it all to numbers. Results when the output is fully automatic into the scientific notation, this is
asp.net page refresh implementation method, compared to the whole, including HTML and JS implementation method.
First look at the ASP.net page Refresh implementation method:
First:
C # code
private void Button1_Click (object sender,
Asp. NET technology from version 1.0 to 1.1 changes are not very large. However, upgrading from ASP.net 1.x to 2.0 is not an easy task. ASP.net 2.0 technology adds a lot of new features that are convenient and practical. ASP.net 2.0 mainly provides
If you already have more object-oriented development experience, skip these two steps: first step to master a door. NET object-oriented Language, C # or vb.net I am strongly opposed to learning asp.net on the premise of not having a system to
Use ASP to combine JavaScript or VBScript to generate a dynamic Web page. When this method is used in practical applications, it is unavoidable to print out the results. We can also sort out the results of the query and print the output directly
Universal function, if the real IP can not be taken, will take the proxy IP
Private Function GetIP ()
Dim stripaddr
If Request.ServerVariables ("http_x_forwarded_for") = "" OR InStr (Request.ServerVariables ("Http_x_forwarded_for"), " Unknown ") >
common code for ASP programming
--------------------------------------------------------------------------------
1. asp connect with Access database:
Dim conn,mdbfileMdbfile=server.mappath ("database name. mdb")Set Conn=server.createobject
ASP to get the first and last day of last month, this month, next month, the fire in the Internet browsing other People's blog found, although not too complex things, but very useful, convenient for everyone to inquire.
The code is as follows:
This article provides the ASP string intercept function is the first to use the definition of string discriminant function to determine the length of the string and Chinese and English, and then intercept the characters after the
We know that the direct use of ASP is not enough to restart the server, then we need to make a component to implement the function, ASP through this component calls the system API, and then according to different restart and shutdown mode to operate!
Asp. NET output caching has many examples on the Internet, here is how to remove the cache in the background management.
1. Based on page caching
For pages: Default.aspx if the top of the page is added:
It is easy to remove in the background
Several methods of passing parameters between asp.net pages
The first method: passing through URL link address
Send.aspx:
protected void Button1_Click (object sender, EventArgs e)
{
Request.redirect ("Default2.aspx?username=honge");
}
Receive.
Three layer of the project into the interface layer, business logic layer and data access layer, the following for you to introduce the next asp.net how to use the three-layer to achieve multiple conditions of retrieval, interested friends can refer
asp.net image generation built-in Imageresizetransform class, you can achieve the image sizing function. can also extend imagetransform to implement its own picture transformation class. use asp.net image generation to generate picture thumbnails
JScript.NET can inherit and extend an existing class after a class declaration by adding the extends keyword using a JScript or any NET Framework language (such as C #,vb7.0). This ability allows jscript.net to easily exploit the rich resources of
This article mainly introduces the asp.net detection of unsafe request.form value solution Rollup, very comprehensive, the need for friends can refer to the
When we use a rich text editor such as CKEditor in a Web site, most of us encounter such a
When it comes to asp.net caching, that is: cache as early as possible; you should cache at every level of your application. Add caching support to the data tier, business logic tier, UI, or output layer. Memory is now very cheap-therefore, a great
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.