- + P A

- ASP内置对象说明

      ASP 2008-6-25 12:58

Response:
语法格式:Response.集合|属性|方法(变量)
Response的属性有:Buffer,Charset,ContentType,Expires,ExpiresAbsolute,Status.
Response的方法有:AddHeader,AppendTolog,BinaryWrite,Clear,End,Flush,Redirect,Write
Response的集合:Cookie.

Request:
语法格式:
Request.集合(变量)
集合:Form,QueryString,ServerVariable,Cookie,ClientCertificate
1. Form:语法格式:Request.form(element)[(index).count].<%=request.form.count%>表单个数。<%=request.form(“name”)%>
2. QueryString:语法格式:Request.QueryString(variable)[(index)|.count]
3. ServerVariable:语法格式:Request.ServerVariable(服务器环境变量)
4. Cookie:语法格式:Request.Cookies(Cookie名)[(key)|.attribute]
使用Cookies集合:
Response.Cookies(CookieName)[(key)|.attribute]=CookieValue
Request.Cookies(CookieName)[(k

标签集:TAGS:
我要留言To Comment 阅读全文Read All | 回复Comments() 点击Count()

- ASP基础知识

      ASP 2008-6-25 12:54

ASP文件的扩展名为.asp,其中可以包括HTML标记,文本和脚本语言,其脚本语言代码包含于”<%……%>”之间。

<% Option Explicit %>表示VBScript中的变量都要声明后才可使用,否则会出错。也可以不要。
文件包含:

<!--#include file=”mypage.inc”-->
<!--#include file=”mypage.asp”-->
<!--#include file=”mypage.txt”-->

条件语句(if….then end if, if….then….Else end if)

循环语句(for….next, for each….next, do while…..loop)

数学类函数:abs(), sqr(),rnd(随机数),round(四舍五入)...

字符串类函数:len(),left(),right(),mid(),strReverse(),split(),trim() ..

日期时间类函数:DateValue(),TimeValue(),Year(),Month,Day(),Hour(),Minute(),Second(),DateSerial(),TimeSerial(),Date(),Time(),Now(),DatePart(),DateAdd(),DateDiff()…

类型转换类函

标签集:TAGS:
我要留言To Comment 阅读全文Read All | 回复Comments() 点击Count()