If you write an ASP program, want to let your user see ASP's raw code, you can use FileSystemObject this object to send out the program original code.
Dim strURL
strURL = Request.QueryString ("URL")
Dim Strdir, strFileName
Strdir =
ASP Cookies
Cookies are often used to identify users.Example
Dim numvisitsResponse.Cookies ("NumVisits"). expires=date+365Numvisits=request.cookies ("NumVisits")
If numvisits= "" ThenResponse.Cookies ("NumVisits") =1Response.Write ("welcome!
ASP this script, we will be able to know and show the number of active visitors in our page at a particular moment. The script has two parts: a filename Global.asa (check data, "Global.asa" file in this tutorial), and a small code insert you must
ASP variable-vbscriptASP is not the language itself. In order to plan the ASP actually, you need to know the VBScript scripting language. This means that the rules of all VBScript variables can be applied to your ASP code. This lesson will teach you
ASP Clear Method Use instance tutorial
The clear method clears any buffered HTML output.Note: This method does not explicitly respond to the title, only the body reacts.Note: If response. The buffer is false, and this method will result in a run-
If Request.Form ("jobname") = "" Then
Response.Write (" ")
Response.End
End If
If request.form ("mane") = "" Then
Response.Write (" ")
Response.End
End If
If request.form ("sex") = "" Then
Response.Write (" ")
Response.End
End If
If Request.Form
'=====================================================================' Software name: New Cloud Website Management system' Current version: Newcloud Site Management System version 2.1' File name: admin_password.asp' Update Date: 2004-12-20'
"Pass form" objects submitted by a form G
' ET
If request.querystring.count>0 Then
Qstr= "?"
For each x in Request.QueryString
Qstr = qstr & x & "=" ' Write Name of Parameter
Qstr = qstr & Server.URLEncode (Request. QueryString (x)) & "&" ' Write
asp Site Search Source Please enter the key word: multiple keywords separated by "space" or "comma"! If Request.Form ("Submit") <> "thenDim database,conn,connstrdatabase= "Example.mdb" database nameSet Conn=server.createobject ("Adodb.connection") '
' Function name: isobjinstalled' Function: Check if the component is installed' parameter: strclassstring----Component Name' Return value: true----already installed' False----not installed
function isobjinstalled (strclassstring)
On Error
DirectoryFirst, the Environment configurationThe basic operation of ASP to ExcelASP operation Excel to generate datasheetIv. ASP operation Excel generates chart diagramFive, server-side Excel file browsing, downloading, deletion schemeVI. Appendix
Using procedures and functions has great benefits for the organization and maintenance of your code, especially when some of the code in the page needs to be used more than once. However, it is a disadvantage to have a function (or procedure) call
What type of cursor and record locking methods are most efficient?
All of the tests so far have used only "forward only" Grand to access the recordset. ADO provides more than three types of cursors for recordsets: Statically scrollable cursors,
How to Enhance ASP program performance (1)
2000-08-10 · Gan Ganping · Yesky
Brief introduction
Performance is a very important feature. You need to design the performance metrics beforehand, otherwise you'll have to rewrite the program for that. is
1 Connection
1.1 Pooling
In the Web application, there are often many users at the same time access to the database, and the ASP is the scope of the object is page level, that is, each page to join and disconnect the database, will it be very slow?
, ASP dynamically generated content in what way to output the highest efficiency?
Author: Cactus Studios This article hits: 123
Generating dynamic content on the server is one of the main reasons to use ASP, so the first test project we choose is to
Q: Why does my RecordCount always return-1?A: You should use this mode to open the record set for database access:Rs. open strSQL, conn, 1, 1StrSQL is the SQL statement used to operate the database, and conn is the Connection variable used to
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