100 likes | 206 Views
Asp 簡介. Request. Response. session & application & cookie. COOKIES 資料放在用戶端 session (" 變數名稱 ")=" 值 " application (" 變數名稱 ")=" 值 " 所有的 用戶分享 一個 Application 寫入 COOKIES: response.cookies (" 變數名 ")= 存入 變數 讀出 COOKIES: 變數 = request.cookies (" 變數名 "). Asp 傳送郵件.
E N D
session & application & cookie • COOKIES資料放在用戶端 • session("變數名稱")="值" • application("變數名稱")="值" • 所有的用戶分享一個 Application • 寫入COOKIES:response.cookies("變數名")=存入變數 • 讀出COOKIES:變數=request.cookies("變數名")
Asp 傳送郵件 • set mail = server.createobject(“cdonts.newmail”)mail.from = “Tek<admin@abc.com>” ‘發送者的emailmail.to = “client@abc.com” ‘接收者的emailmail.subject = “郵件主題”mail.body = “內容”mail.send ‘發送
ASPupload組件(1) • <HTML><BODY BGCOLOR="#FFFFFF"> <FORM METHOD="POST" ENCTYPE="multipart/form-data" ACTION="UploadScript1.asp"> <INPUT TYPE="FILE" SIZE="40" NAME="FILE1"><BR> <INPUT TYPE="FILE" SIZE="40" NAME="FILE2"><BR> <INPUT TYPE="FILE" SIZE="40" NAME="FILE3"><BR> <INPUT TYPE=SUBMIT VALUE="Upload!"> </FORM></BODY></HTML>
ASPupload組件(2) • <HTML><BODY><%Set Upload = Server.CreateObject("Persits.Upload")Count = Upload.Save("c:\upload")Response.Write Count & " file(s) uploaded to c:\upload"%></BODY></HTML> • 更詳細請參考 http://www.aspupload.com/index.html
ASP 學習資源 • ASP語法速查表 • http://www.lishin.tcc.edu.tw/b5/asp/vb/vbs.htm • ASP教學文章庫 • http://www.study-area.org/coobila/category_ASP_u6559_u5B78.html