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
Database field: ID (automatic number), class_name (menu name), parentid (parent menu ID)
CopyCode The Code is as follows: Dim m
M = 0
Call showtree (0) %>
Sub showtree (parentid)
Dim s
M = m + 1
Dim rs
Set rs = server. Createobject ("ADODB.
Author: Gan jiping;
Suppose you want to create a simple message book, you can create a database to store user information. However, if you do not need the powerful functions of the database, using FSO to store information will save you time and
In ASP programming, classes can play a very good role in encapsulation. Although the classes in ASP cannot be truly object-oriented, they are only object-based. However, classes can play a very good role in ASP development, it is still necessary to
Some websites modify the default Suffix of dynamic pages in IIS for various reasons. In the ASP era, some users modify the configuration on the server and parse the HTML suffix files as ASP files: that is to say, ASP
Program The file suffixed with .
1. Using the command object and parameter object to pass parameters this section mainly uses the Microsoft SQL Server7.0 database, first establishing a connection file adosql7.asp for backup, which will not be described in detail later.
%
Openfile dialog in webform
If you need an openfile dialog box that opens a file in a browser, you can use the HTML input to set its type to file: Top: 228px; Height: 25px "type =" file "size =" 58 "id =" txtfilepath ">
Page_load and
This data source is divided into two parts. One is to call up data from the data class, and then operate the paging parameters and page paging auxiliary controls in this data source! There are three controls in front to control flip pages, one
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.
'-------------------------------------------------
'Function name: ReadTextFile
'Purpose: Use the AdoDb. Stream object to read text files in UTF-8 format
'----------------------------------------------------
Function ReadFromTextFile (FileUrl,
One method is to use Index Server query object and parameters:
Set Q = Sever. CreatObject ("ixsso. Query ")
'Create a query object.Set Util = Sever. CreatObject ("ixsso. Util ")Q. Query = Request ("SearchString ")
'Query the field.Q. SortBy =
Dim varInitial_TimeVarInitial_Time = TimerResponse. Write "Initial_Time = [" & varInitial_Time & "] "%>
For I = 1 to 10Response. write "Dancing With The Wind (www.intels.net) fashion consulting personal website welcome you! "& I &" "Next%>
you
Copy codeThe Code is as follows: strSourceFile = Server. MapPath (dataxml & "/Advertisement/" & id & "/adv. xml ")
Set objXML = Server. CreateObject ("Microsoft. XMLDOM") 'creates an XML Object
ObjXML. load (strSourceFile) 'reads XML files into
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
IMG provides 50 m free space to support ASP + PHP
The following are the introductions on their Forum:
Yiwang.com sponsored this forum and paid off everyone's love. Now it is decided to open 50 m free PHP + ASP + FTP all-around space.Space
Brief Introduction: Generally, the homepage of a website has the largest access volume. If the homepage of your website is opened slowly, your customers will leave your website one after another. we usually cache data that requires complex
The search engine is composed of an HTM file and an ASP file. It mainly uses the FILESYSTEMOBJECT component to achieve its purpose. It is powerful and can be used directly after the interface is modified, of course it would be better to add
Common functions of ASP.
Dim dbDb = "dbms. mdb"
'*************************************** ***************************'Execute the SQL statement without returning the value. The SQL statement should be as follows:'Update table name set field name =
Copy codeThe Code is as follows: '================================================ ==================================== Check the validity of the submitted data
Function CheckInput ()
'-------- Definition section ------------------
Dim Fy_Post,
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