access| Database
The following code is the simplest example code that uses ASP to create an Access table, and the ID number that is created is an AutoNumber number.
Dim
ConnDim
DBPathSet Conn=server.createobject ("Adodb.connection"
select| statements |select a wide variety of SQL products, you may have done it sooner than others. But you can get dizzy if you want to use both ASP and SQL at the same time. MySQL, SQL Server, and msql are excellent SQL tools, but unfortunately
Perfect support for Chinese verification Code, English and digital verification code.
Set up relatively simple, open the file (dv_getcode.asp) to modify the corresponding parameters:
The following is a reference fragment:Mcodetype = 0 '
Cookie|cookies|object|request|cookie
Cookies
The Cookies collection allows the user to retrieve the value of the cookie sent in the HTTP request.
Grammar
Request.Cookies (cookie) [(key) |. Attribute
Parameters
Cookies
Specifies
"Gobang" is very familiar to everyone is a kind of puzzle games, related game software is also very much, here I solemnly launched a new pure "network version" of the Gobang, it uses ASP as the development environment, so on the internet when there
IP address |ip address
There is no bit operation in the VBS, so in a page with JS and VBS, and not good, if the VBS can also, but wordy some, and a little note, if in the VBS split ("202.102.29.6", "."), will get 202,102, 293 number, Not get the
Submitting a Form | Submitting a Form
In order for the ASP to minimize server-side workloads, you should use JavaScript more, and submit all submitted fields to the server using JavaScript or VBScript, so that the server does not have to be tested,
In the GridView we can simply add a commandfield delete column to delete a row of information. However, in order to avoid misoperation caused by the deletion of the deletion, the operator to remove the operator to confirm, after the deletion.
First
SQL uses ASP to connect to the MS SQL database, the standard connection, commonly used is the following connection string:
CONN. OPEN "Provider=SQLOLEDB.1;" &_
"Password= '" &pass_word& "';" &_
"Persist security info=true;" &_
"User id= '" &User_ID&
Stored procedure | Stored Procedure 1 This is also the simplest method, with two input parameters and no return value:
Set connection = Server.CreateObject ("Adodb.connection")
Connection.Open SOMEDSN
Connection.Execute "ProcName varvalue1, Varvalue2
Add: Beginner ASP Always for Response.Redirect This method is confused, repeatedly with uncomfortable, now I come to tell you some skills. Before you can use it, you must use the Response.buffer=true to make the ASP page work with buffers. At this
Asp+|cookie|cookie by default, the session object of asp+ still relies on cookies, but
Config.web file settings, you can make the session object no longer dependent on the browser
Cookies (that is, even if the browser's cookie function is turned off,
one of the easiest ways to implement URL rewriting (urlrewriter) in asp.net.
Reference (author Scott Mitchell translation: Janssen) of the masterpiece, although not fully understand, but also suit did a, quite "achievement" sense. Write it out and
Request| Objects | built-in objects |
The request object is used to accept all information from the browser sent to your server.
CollectionRequest.clientcertificate (Key[subfield])
A collection of information about all customer certificates. For Key,
Database structure (two tables used altogether)
1.tblCategory
Field Name Type
Root binary description tree off or on (root of directory)
ID Auto Number keyword
The sort integer identifies the integer of the field's contents (if Root is on state
when creating or modifying a complex ASP.net server-side control, a large amount of time is compiled, waiting for JIT, modification, compilation, JIT ... In such a loop, and two compilations are often time-consuming. In particular, when a control is
Data | database | display
The preceding code omitted, is the code that connects the database, the code that displays the database data in tabular form is as follows:
For I=0 to Rs.fields.count-1Response.Write ("" &rs (i) .name&
Paging
Set conn=server.createobject ("ADODB. Connection ")
Conn. Open "Provider=msdaora.1;data source=yoursrcname; User Id=youruserid; Password=yourpassword; "
Set rs=server.createobject ("ADODB. Recordset ")" To create a Recordset object
Rs.
Asp+|fso|js
Set js = Server. CreateObject ("ADODB.") RecordSet ")Sql= "SELECT top * from article ORDER BY id DESC"Set JS = conn. Execute (SQL)Do as not js.eofTitle=js ("title")Addate=js ("Addate")Foolcat = Foolcat + "" &title& "" &addate& "
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