最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
ASP中查错之实例
时间:2008-01-12 编辑:简简单单 来源:一聚教程网
<%@ LANGUAGE=VBSCRIPT %>
>
The ASP Application Object
<% 'look for a command sent from the FORM section buttons
If Len(Request.Form("cmdAdd")) Then ' 利用是否长度为0来判断
strVarName = Request.Form("txtVarName")
strVarValue = Request.Form("txtVarValue")
Application.Lock
Application(strVarName) = strVarValue ' 此处报错
Application.Unlock
End If
If Len(Request.Form("cmdRemoveThis")) Then
strToRemove = Request.Form("lstRemove")
Application.Lock
Application.Contents.Remove(strToRemove)
Application.Unlock
End If
If Len(Request.Form("cmdRemoveAll")) Then
Application.Lock
Application.Contents.RemoveAll
Application.Unlock
End If
%>
<%
For Each objItem in Application.Contents
If IsObject(Application.Contents(objItem)) Then
Response.Write "Object reference: '" & objItem & "'
"
ElseIf IsArray(Application.Contents(objItem)) Then
Response.Write "Array: '" & objItem & "' contents are:
"
varArray = Application.Contents(objItem)
-
上一个: 在ASP与ASP.NET之间共享对话状态
相关文章
- asp For Next语句实例 10-14
- asp do while与while语句实例 10-14
- asp For Each语句实例 10-14
- asp 上一篇,下一篇文章实例代码 04-16
- asp For Next 循环语句语法与实例 03-03
- asp do while 循环语法与do while实例教程 03-03