This sample script uses the CDO as NTS Library to
Read e-mail for a specific user.
Leon Braginski & Matt Powell (c)
-->
If (Request.ServerVariables ("request_method") = "POST") Then
Name = Request.Form ("name")
Email = Request.Form ("ename")
Else
'
It is imperative that you create Exchange 2000 users with ASP, but previous similar articles are about Exchange 5. 5, and clearly not backward compatibility, so on the MSDN site for a long time, finally found a little information, after adaptation,
This sample script uses the CDO as NTS Library to
Send email to a specific user.
Leon Braginski & Matt Powell (c)
Note: ' To ' is ' a reserved word, so we added ' a underscore to it.
-->
If (Request.ServerVariables ("request_method") = "POST") Then
If Err.Number = 0 ThenEr = FalseElseErr.ClearEr = TrueEnd IfEnd FunctionSub Delfile (filename) ' This is a procedure for deleting files, and if no file name is specified, all files in that directory will be deletedOn Error Resume NextSet
ASP use the FSO to generate HTML pages, this article is my sophomore wrote, is the use of the ASP with the component FSO to upload the user files on the production of HTML files used, it is also a good judge of the existence of the file name, and so
' I wrote a function that traverses the directory and the files in the directory,
%>
function Bianli (path)
Set Fso=server. CreateObject ("Scripting.FileSystemObject")
On Error Resume Next
Set OBJFOLDER=FSO. GetFolder (PATH)
Set
ASP commonly used functions, I hope to be able to use.
Dim db
db= "Dbms.mdb"
'******************************************************************
' Execute the SQL statement, do not return a value, the SQL statement best is as follows:
' Update table
I found a lot of friends, all said debugging ASP's components is very cumbersome to recompile the DLL to restart the machine first
Well, it doesn't have to be that much trouble
Running Iisreset,iis will reboot (different from the site reboot), all
Author: Gan Ganping;
Suppose you want to create a simple guest book, you can build a database in which to store the user's information. However, if you don't need the power of the database, using the FSO to store the information will save you time
If the reader is already familiar with ASP 2.0 and is looking for a list of actual changes in version 3.0, then this information will be found below. If the reader is a beginner of ASP, you can go over this chapter to the next chapter, where you
If you are using Win2000 and IIS5.0 now, then you can realize that ASP 3.0
The new changes brought about by ...
ASP 3.0 is not particularly altered in relation to ASP 2.0, which is the ASP version in IIS 4.0.
But it also brings some very distinctive
Because the controller is placed in the class library in the MVC2 project, the parsing XML file is used, and the project structure is shown below
How to get the absolute path to the XML file in the class library, I searched the web
This method
1 using System;2 using System.Data;3 using System.Configuration;4 using System.Collections;5 using System.Web;6 using System.Web.Security;7 using System.Web.UI;8 using System.Web.UI.WebControls;9 using System.web.ui.webcontrols.webparts;Using System.
With select Ident_current (tablename)Ident_currentReturns the identity value that was last generated for the specified table in any session and in any scope.
GrammarIdent_current (' table_name ')
Parameterstable_name
is the name of the table
When uploading files often to determine whether the folder exists, if there is upload files, or create a new folder to upload filesThe grammar is probably like this
string dir= "d:xxxyyy"
if (System.io.directory.exists (dir))
{
Exist
}
AddHeaderThe AddHeader method adds the HTML title with the specified value. This method often adds a new HTTP title to the response. It does not replace the existing title with the same name. Once the title is added, it cannot be deleted.This method
To improve the performance of the homepage, whenever the homepage needs to call the database to display data, it will first attempt to call data from the cache. If no data is available in the cache, it will then open the database to retrieve the
Anyone who has been on the internet knows Cookies, which are commonly known as Cookies. Cookies are short texts sent from the server to the client.This handle allows the website to store some specific information on the user's local hard disk by
Compile is changed to book. asp. After the form is submitted, it is processed by itself. In this FORM, there are several text input boxes, including name, sex, from, url, email, and comments.Now, change book.htm to book. asp and add ASP code to the
' problem not handledXmlfile = "???. Xml"Set xml = Server. CreateObject ("MSXML. DOMDocument ")Xml. async = falseXml. load (xmlfile)Private function showxml (node)Dim tempstrFor each I in nodeIf I. nodeType = 1 thenTempstr = "" & I. nodeName &
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