Do Web sites want to use dynamic information, and the dynamic and slow, then come out of the dynamic generation of static methods, ASP generated HTML, but found that the generated content is not the latest, such as I generated the home page, after
Website Domain name: www.***.com
Achieve the goal: input www.***.com or ***.com are able to enter the primary domain name www.***.com
System Category: ASP Class website
Prerequisites: The Site Administration panel can set the default home page
Now let's talk about how to solve the problem and how to use it.Add the following code to the common file conn.asp used in the Web site program:
1, Gb2312 code page to join
The code is as follows
Copy Code
Finally add
See code:
The code is as follows
Copy Code
Dim conn,rs,excelfilenameExcelfilename=server.mappath ("Data/test.xls")Set conn = Server.CreateObject ("ADODB. Connection ")Conn.connectionstring= "Provider=Microsoft.Jet.OLEDB.
, With templet means that the generated page architecture will use a preset template, which was introduced in my previous tutorial, I hope you will be familiar with ASP template before reading this tutorial.2. ASP is converted to HTML. Don't let me
This article will introduce four tips for optimizing ASP applications.1. Cache frequently used data in Application or Session objectsASP Application and Session objects provide a convenient container for saving data in the memory. You can assign
When ASP is used to deal with SQL Server databases, query statements are essential. The SQL Server database itself provides a variety of query statements, but how to implement multi-condition dynamic query for the SQL Server database in ASP? When I
We usually need to write the previous date on the WEB page to enable user-end scripts or ASP.A feature of ASP is that the effect produced by ASP is static pages, but in reality it is dynamic.If you want to use ASP to display the daily period of a
In fact, in web development, a cookie is only a text file. When a user accesses a website, it is stored on the user's computer.Some information, which can be extracted by the web when the user visits the site again in the future. Although it sounds
I recently fell in love with my website and used asp for development. I found that asp has many vulnerabilities and a lot of code is used repeatedly on a website, so I found some materials and found that the idea of class can be used in asp. So I
1. Enable Record set again before it is disabled:------------------------------------SQL = "select * from test"Rs. open SQL, conn, 1, 1If not rs. eof thenDim myNameMyName = rs ("name ")End ifSQL = "select * from myBook"Rs. open SQL, conn, 1, 1-------
ActiveServerPages, ASP0126 (0x80004005) --> the inclusion file cannot be found.MicrosoftOLEDBProviderforODBCDrivers (0x80040E21) --> SQL statement error (data type mismatch, table name (field name) error, table being edited, or table not in
Map of files on this site Hide/Show => Sub window_onscroll ()Rightf. style. pixelTop = document. body. scrollTopShhi. style. top = document. body. clientHeight + document. body. ScrollTop-30End SubSub DoFold (index) 'process of displaying and
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.