All nodes in the piece, there is a delete and edit two connections next to each node, where the code to delete is:Id=request ("id")If IsNumeric (ID) =false or isNull (ID) ThenResponse.Write ("parameter is not correct, please return!")
ASP FSO Tutorial: ASP Delete method
Deletes the specified file or folder by deleting the method.Grammar
fileobject.delete[(Force)]
folderobject.delete[(Force)]
Parameter
Description
Force
This kind of program on the internet a lot of, but to practice "regular expression" is also good, so just write this, now only on the code (functions, keywords, objects, strings) coloring, next to the function block to add folding effect (. NET code
Show page load time
Add the following code to the top of the page:
Dim Strstarttime
Dim Strendtime
Strstarttime = Timer ' Start time
%>
Page (same page) to add at the end:
' Time to load
Strendtime = Timer
Response.Write ("Page load Time:")
Response.
In the following example, we create an instance of a FileSystemObject object and then instantiate the file object using the GetFile method. After that, we use the file object properties to get information about the specified file:
Dim objFSO,
The code is as follows
Copy Code
Dim Rs,sql,foundstrDim Classid,childstrDim Rssbody,rsstitle,rsshomepageurlDim Xmldom,node,cnode,cnode1,msginfoSet xmldom = Server.CreateObject ("Microsoft.FreeThreadedXMLDOM")Xmldom.appendchild
'****************************************************' Function name: SendMail' function: Send mail with JMail component' parameter: serveraddress----server address' AddRecipient----address of the addressee.' Subject----Theme' Body----Letter Content'
ASP to determine file fileexists, folder folderexists, letter driveexists whether there is
, disk character driveexists
Set fs=server.createobject ("Scripting.FileSystemObject")
If Fs.driveexists ("c:") = True ThenResponse.Write ("Drive c:exists."
We often explore the use of ASP, and do not use other build can achieve file upload, so as to develop a mail system to support mail attachments, the answer is yes. Please see:
The following is the page to send the mail, the mail account number is
any word except the asterisk (*), comma (.), question mark (?) and vertical bar (|) Fudumo that matches itself.
Regular expressions can be enclosed in quotation marks ("), if they contain spaces () or closing brackets (), you must enclose them in
Asp when using components to upload, a little trouble is not know the upload progress is how much, although some provide the upload progress bar, such as abcupload (Download Address: http://www.websupergoo.com progress ), it is a progress page
Use ASP to generate image color verification codes49 lines of code, three filesAsp File: Code. AspData File: body. Fix, Head. FixDownload: download the packageUsage: Option ExplicitResponse. buffer = trueNumCodeFunction NumCode ()Response. Expires =-
21. IsObject ()FUNCTION: Returns a boolean value indicating whether an expression refers to an automation object.SYNTAX: IsObject (expression)ARGUMENTS: expression is any valid expression.EXAMPLE: Set con = Server. CreateObject ("ADODB. Connection ")
1. Symptom description:Run the asp file locally. The IE prompt is:Server Application ErrorThe server has encountered an error while loading an application during the processing of your request. Please refer to the event log for more detail
21. FieldStatusEnum constantThe name, value, and description of FieldStatusEnum constants are shown in the table F-21.Table F-21FieldStatusEnum constant name, value, and descriptionName value descriptionThe adFieldAlreadyExists26 field already
ASP has five built-in (built-in) objects: Server, Request, Response, Application, and Session. Now we will explain them through examples. The first is the most commonly used Response object.Example 1 use Response to output HTML documents on the
The following is the function file for obtaining the verification code. Save the file as GetCode. asp.Option ExplicitResponse. buffer = trueNumCodeFunction NumCode ()Response. Expires =-1Response. AddHeader "Pragma", "no-cache"Response. AddHeader
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