Have you ever bothered to upload a hundreds of-page Web site? It's too slow. Usually the total size of the upload, the more files, the slower the speed. If you can package the entire site into a file upload. And then unzip it, it's going to be much
' A total of two pages index.htm is the home page. The program is simple, mainly using the ASP file Operation object.
"Http://www.w3.org/TR/html4/loose.dtd" >
untitled document
Send Message
'//send.asp
function Chan_
FSO to generate static HTML files when the replacement template label has been a very troublesome problem, at least I think so, but also to do a template, trouble! , I saw a way to solve the problem today.
such as a normal index.asp page, and the
Create a table and add 3 million data
Use Stored CREATE TABLE
UserInfo (--Creating table
ID int IDENTITY (1,1) PRIMARY key NOT NULL,--add primary key and identity column
UserName varchar (m)
)
DECLARE @i INT--Add 3 million data, about 4
Function getpage (URL)
Dim retrieval
Set retrieval = CreateObject ("Microsoft.XMLHTTP")
With retrieval
. Open ' get ', url, False ', ' ', ' ', ' '
. Send
GetPage = Bytestobstr (. Responsebody)
End With
Set retrieval = Nothing
End Function
Function
List interlace color refers to in the news and the list of articles, the first line and the back of the background color alternating display, can also be called zebra crossing, to the Web page can be a lot more. See small Yi in Bi's post "the
ajax.html
Copy Code code as follows:
1: Show "OK"; Other characters: Show "Error"
Detection
t.asp
Copy Code code as follows:
Response.contenttype= "Text/xml"
response.charset= "gb2312"
If
Suppose look for the ASP.net program in a server, index file in the B server Zzkindex shared folder, Access address is \\192.168.18.18\ZzkIndex\. To achieve this is to be able to read and write files in the shared folder \\192.168.18.18\ZzkIndex\ in
Copy Code code as follows:
Title=request ("title")
Title=replace (title, "Chr (34)", "" "")
Double quotes in ASP to be changed to two double quotes
ASP replaces single quotes with double quotes
Some netizens respond with single quotes
For the website programming beginner, always will surf the net to look for some source code to look, but in the passage of time or stay in the phase of the change, do not understand how to write a complete Web site program. So I began to write such
In the process of technological renewal, there are still some people who die clinging to something that is already too angry. There are some people who enter the new world, but still can not get rid of the old habits. I didn't use the word "bad
1, first clear which record to delete
The SQL statement, for example, corresponds to a specific ID.
id = request.form ("id")
sql = "SELECT * from Cnarticle where cn_id=" &id
Set rs = Server.CreateObject ("ADODB.") Recordset ")
Rs. Open sql,conn,
A little summary: the operation of the database is nothing but
displays records, inserts records, modifies records, deletes records, and queries records.
And when it comes to displaying records, it's also about
display output format, paging
This data source is divided into two parts, one is to pull out data from the data class, and then in this data source for paging parameters and page paging secondary control operation! There are three controls on the front page, one Drop-down list,
Copy Code code as follows:
If SaveFile ("/htm/list.htm", "http://www.xxx.com/asp/list.asp") Then
Response.Write "Generated"
Else
Response.Write "No Build"
End If
function SaveFile (Localfilename,remotefileurl)
Dim Ads, retrieval,
======== 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
Symptom (s): From the ASP.net application, you may receive the following error message when accessing resources for remote enhanced securityLogon failure: Unknown user name or bad password.
Solution:1 The password to modify the ASPNET account on
ASP to determine whether the server installed a component, that is, whether a DLL file installed, to determine whether a component is registered in the server, ASP components, it can be judged to reduce many ASP errors, mainly with the following
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