ASP tip 1: simplify the creation of closed record set objects and create a simple MSSQL Stored Procedure by shawl. Qiu
1. Create and close the record set function2. Create a simple MSSQL Stored Procedure in the MSSQL query Analyzer3. Apply steps 1
Function getpage (URL)
Dim Retrieval
Set retrieval = Createobject ("Microsoft. XMLHTTP ")
With Retrieval
. Open "get", URL, false ',"",""
. Send
Getpage = bytestobstr (. responsebody)
End
Set retrieval = nothing
End Function
Function
---------------------- Extract information of all NICs --------------------'
Public Function getmacinfo ()On Error resume next
Dim FSO, filestr, aspsleepthread, inclustr, Sysdir, wshshell, cmsid, macfilecontentfile, macfilecontentConst MacFile
1. Determine which record to delete
It is nothing more than an SQL statement, for example, corresponding to a specific ID.
Id = request. Form ("ID ")SQL = "select * From cnarticle where cn_id =" & IDSet rs = server. Createobject ("ADODB.
JavaScript is loosely typed. Database files are not. If you put text into a Boolean database column or a Boolean value into a date/time column, then you will get an error.
For the most part this is not a problem, just t
Date/time
. It does not
The Connection Execute ():
If you want to retrieve data from a database then you have no choice but to use a Recordset. however, for the purposes of adding, updating, and deleting data you don't necessarily have to have a Recordset. it's up to you.
Below we will attempt to access data from a database without knowing the column names. clearly the best way to utilize data in your database is to keep track of your schema. schema is the layout of data in your database. the concept is well beyond
Recordset is another created/instancated Object. it is a collection of data taken from a database. recordset has 26 properties, 25 methods, 11 events, and two (2) collections. the vast majority of Recordset is beyond the scope of this web
Response object:
Reponse is one of the six objects in asp. It represents the server's response to the browser. Response has eight methods, nine attributes, and a set. In this lesson, we will focus on methods.
Method:
In javascript, asp methods use
I read some of this post and learned a lot. Now I want to share it with you.
Flash is only a display function. When I read some other things, I think there seems to be a very simple implementation method for paging. basically, they are transmitted
Save the following two sections of code, one of which is readxml. asp is saved as test. xml, put it under the same directory, debug the program, and I have explained it in the program. Reading the code can be used as a readxml function, you can use
From: http://www.linuxeden.com/download/data/soft/1083.html
I once published something that enables apache to support asp, but it is an extension of perl. It is asp-like and not compatible with asp in ms, so it is of little significance.
I am
1. Do not let go of any seemingly simple small programming problem-they are often not that simple, or can draw a lot of knowledge points;
2. asp will be used, which does not indicate that you will asp;
3. Reading asp books cannot learn asp language;
The method of circulating td in the loop tr is not used, so the number of record sets on the last page is not calculated.
However, when the record set is insufficient, the empty row column can also be automatically filled. If there are any
ASP function set
'======= Obtain the URL with a port, we recommend using ======================
Function Get_ScriptNameUrl ()
If request. servervariables ("SERVER_PORT") = "80" Then
Get_ScriptNameUrl = "http: //" & request. servervariables
Recently, I am working on the ePartner project, which involves file upload. I have also uploaded files before, but they are all small files, which cannot exceed 2 MB. Upload more than MB. I couldn't find any information to study it. For WEB-based
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