Recently, I helped others process the data and found that when adding the data, I was prompted that "ASP cannot be updated. The database or object is read-only. ", I found it from the Internet and it did not solve my problem.
1. The data directory
In this way, you can modify and integrate the key statements.
ASP: I will not write the database connection
CopyCodeThe Code is as follows:
Rs. Open "select * From Table1", Conn, 1, 1
For I = 1 to Rs. recordcount
Response. write ("vlue1" & I &
This information has not been reviewed by this site. It comes from the network.
1. Free Space Performance description:MB web page space, supports ASP, PHP, MySQL. (Excellent user space can be added as appropriate)2.30 IIS connections. (Excellent
This information has not been reviewed by this site. It comes from the network.
Currently, free network resources are poor. To provide a better free homepage space, we must activate it through QQ certification. Please contact QQ: 414565300Apply for
CopyCodeThe Code is as follows: Function newtxt (SZ, strtxt, cityid)
Dim Ali, icount, I
Dim ali2
Ali = Split (SZ ,",")
Ali2 = Split (strtxt ,",")
Icount = ubound (ALI)
Cityid = request. querystring ("cityid ")
If request. querystring ("cityid"
No component generates verification code-GIF format
Copy codeThe Code is as follows: Option Explicit 'display Declaration
Class Com_GifCode_Class'''''''''''''''''''''''''''''''''''''''' ''''''Author: Layen support@ssaw.net 84815733 (QQ)'Thanks:
Online Search for asp Trojans in a space
Copy codeThe Code is as follows:
'Set Password
PASSWORD = "jb51net"
Dim Report
If request. QueryString ("act") = "login" thenIf request. Form ("pwd") = PASSWORD then session ("pig") = 1End if%> ASPSecurity
In program design, you often encounter a situation where you cannot know in advance what data the user needs. You must extract the data from the server and then feed it back to the user based on the user's selection. For example, if you select a
Some people often ask me how to create a FLASH message board. However, I can't make it clear in one sentence, so I came up with the idea of writing a tutorial. Later, I thought about how to teach people to fish. It is better to teach people to fish.
Function getHTTPPage (url)
Dim Http
Set Http = server. createobject ("MSXML2.XMLHTTP")
'Http. open "GET", url, false
Http. open "POST", url, false
Http. send ()
If Http. readystate <> 4 then
Exit function
End if
'Gethttppage = bytesToBSTR (Http.
Objective: To test whether the active release of memory variables is valuable.
Original experiment code:
Memory Change 1:
Explanation: the changes in the CPU waveform are caused by automatic page refresh. Don't worry! We only need
Batch entry is widely used in databases, and there are many methods for batch entry. Next I will talk about how I implement it based on my actual application. We mainly use the form set concept to retrieve all the data in the set through a loop. For
'-------------------------------------------------
'Function name: ReadTextFile
'Purpose: Use the AdoDb. Stream object to read text files in UTF-8 format
'----------------------------------------------------
Function ReadFromTextFile (FileUrl,
It is used to generate sitemap. xml files, facilitating crawling by google and other search engines.
Copy codeThe Code is as follows: Server. ScriptTimeout = 50000
'Sitemap_gen.asp
'A simple script to automatically produce sitemaps for A webserver,
I often hear about the ASP upload vulnerability, that is, modifying the suffix of some Trojan Files (to the suffix of image files) for uploading.
Use the following functions to identify the problem:
Copy codeThe Code is as follows: '*****************
Copy codeThe Code is as follows:
Set js = server. CreateObject ("ADODB. RecordSet ")
SQL = "select top 10 * from article order by id desc"
Set js = conn. Execute (SQL)
Do while not js. eof
Title = js ("title ")
Addate = js ("addate ")
Q: Why does my RecordCount always return-1?A: You should use this mode to open the record set for database access:
Rec. open strSQL, conn, 1, 1
StrSQL is the SQL statement used to operate the database, and conn is the Connection variable used to
When I started learning xml, I made a simple xml message board.
-------------------------------
Create a new XMLDOM objectServer. createObject ("Microsoft. XMLDOM ")
--------------------------------
Load an xml fileSet objXML = server. createObject
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.