Application中出现的问题
来源:百度知道 编辑:UC知道 时间:2024/06/07 23:03:51
<html>
<head><title>Application示例</title></head>
<body>
<h3>Application示例</h3>
<%
name=request.form("visitor")
i=request.form("zhuanye")
if name<>"" then
application.lock
if i=0 then
Application("chinese")=Application("chinese")+1
char="中文"
elseif i=1 then
application("english")=application("english")+1
char="英文"
end if
response.write"欢迎<b>"&name&"</b>,你是来到"
response.write"<b>"&char&"</b>讨论专区的第"
response.write application.contents(i+1)&"位客人.<p>"
response.write"<a href=9_2.asp>返回</a>"
application.unlock
response.end
end if
%>
<form method=post>
<table><tr><t
<head><title>Application示例</title></head>
<body>
<h3>Application示例</h3>
<%
name=request.form("visitor")
i=request.form("zhuanye")
if name<>"" then
application.lock
if i=0 then
Application("chinese")=Application("chinese")+1
char="中文"
elseif i=1 then
application("english")=application("english")+1
char="英文"
end if
response.write"欢迎<b>"&name&"</b>,你是来到"
response.write"<b>"&char&"</b>讨论专区的第"
response.write application.contents(i+1)&"位客人.<p>"
response.write"<a href=9_2.asp>返回</a>"
application.unlock
response.end
end if
%>
<form method=post>
<table><tr><t
英文会变的难道?你这个 Application("chinese") 没有初始化吧?那加1会出错的。
-------------------------
2008年8月25日16:46:49
楼主输出 application 变量输出错了,既然你计数使用的是 application("chinese") 这样的方式计数的,那么你输出也要用同样的方式输出,而不能用 application(i+1) 这样的基于索引的方式,否则会有很大的不确定性。
ASP.NET服务器中出现Server Error in '/' Application的问题
请问asp中application和session的问题?
在Windows中Fingerprint Application Suite文件的小问题
用application保存访问量时出现问题
关于Shell.application的问题
在加载宏的应用中出现的Visual Basic for Application 是不是应用型VB?
在手机中输入#66#,为什么出现的是unknown application
我的电脑最近总是蹦出“DEMO MFC APPLICATION出现问题需要关闭”的对话框
我安装完主板驱动里的Intel Application Accelerator Driver后机子出现问题
php中实现ASP的Application