标题:错在哪里???
取消只看楼主
huangweia0
Rank: 1
等 级:新手上路
帖 子:50
专家分:0
注 册:2005-3-8
结帖率:33.33%
 问题点数:0 回复次数:2 
错在哪里???
以下程序<%                                                                           
response.write objasperror.category                                                     
if objasperror.aspcode>""then                                                  
response.write","&objasperror.aspcade                                       
response.write"(0x"& hex(objasperror.number)&")"&"<br>"                                 
response.write"<br>"&objasperror.description&"</b><br>"                     
if objasperror.aspdescription>""then                                            
response.write objasperror.aspdescription&"<br>"                                       
blnerrorwritten=false                                                        
'only show the source if it is available and the request is from the same machine as IIS
if objasperror.source>""then                                                   
strservername=lcase(request.serverVariables("server_name"))                             
strserverip=request.servervariables("LOCAL_ADDR")                                       
strremoteip=request.servervariables("remote_addr")                                      
if(strservername="localhost"or strserverip=strremoteip) and_                           
objasperror.file<>"?" then                                                              
response.write objasperror.file                                                         
if objasperror line>0 then                                                              
response.write",line"&objasperror.line                                       
if objasperror.column>0 then                                                            
response.write",column"&objasperror.column                                   
response.write"<br>"                                                         
response.write"<font style=""color:000000;font:8pt/11pt courier new""><b>"              
response.write server.htmlencode(objasperror.source)&"<br>"                             
if objasperror.column>0 rhen                                                            
response.write"</b></font>"                                                  
blnerrorwritten=true                                                         
end if                                                                        
end if                                                               
if not blnerrorwriteen and objasperror.file<>"?" then                                   
response.write"<b>"&objasperror.file                                 
if objasperror.line>0 then                                                              
response.write",line"&objasperror.line                        
if objasperror.column>0 then                                                            
response.write",column"&objasperror.clumn                           
response.write"</b><br>"                                             
end if                                                            
%〉

错误提示是最后一个end if 那里出了问题。
请教高手究竟错在哪里呢???
恳请不吝赐教!!!
2005-03-08 23:04
huangweia0
Rank: 1
等 级:新手上路
帖 子:50
专家分:0
注 册:2005-3-8
得分:0 
可是第一句就有错误阿

Microsoft VBScript 编译器错误 错误 '800a03f6'

缺少 'End'

/iisHelp/common/500-100.asp,行242

Microsoft VBScript 运行时错误 错误 '800a01a8'

缺少对象: ''

/if.asp,行1


2005-03-09 14:50
huangweia0
Rank: 1
等 级:新手上路
帖 子:50
专家分:0
注 册:2005-3-8
得分:0 
是第二行Response.write obnasperror.category

2005-03-09 14:54



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-13023-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.055807 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved