我的ASP.NET程序中,须用到一个asp页面(不是.aspx,是.asp),它上面有数个按钮,用来执行命令,它在服务器端正常显示并能正常工作,但在客户端上浏览服务器上的站点下的该asp页面时,有按钮的地主却只显示个方框,点击也无反应.  
我的服务器端win2000sp4,装了vb,office,vs2003,客户端是干净的win2000或winXP  
我以前没用过asp,不知怎么才能让asp页面在客户端正常?    
该asp页面大体如下:  
<!DOCTYPE  HTML  PUBLIC  "-//IETF//DTD  HTML//EN">  
<html>  
           <head>  
                       <title>&#21326;&#40718;&#21338;&#35270;&#26723;&#26696;&#26174;&#31034;&#31034;&#20363;</title>  
                       <meta  http-equiv="Content-Type"  content="text/html;  charset=iso-8859-1">  
                       <meta  name="GENERATOR"  content="Microsoft  FrontPage  4.0">  
           </head>  
           <body>  
                       <script  language="VBScript">  
<!--  
Sub  window_onLoad()  
     'zoomfactor  =  30.0  
     'ImgShow.PaintSizeMode  =  3  
           'ImgShow.BitonalScaling=2  
     'ImgShow.UnlockSupport  L_SUPPORT_EXPRESS,  "sk39uTYp"        
     'ImgShow.PaintEffect  =  0  
     '  dim  path    
     '  path="<%=Request("path")%>"  
     'document.all.Text1.value=path  
     '  ImgShow.BitmapDataPath  =path  
end  sub  
-->  
                       </script>  
                       <script  language="VBScript">  
<!--  
dim  zoomfactor  
dim  iPage  
-->  
                       </script>  
                       <script  language="VBScript"><!--  
Sub  cmdZoomIn_Click()  
         'dim  iFactor  
         'iFactor=  ImgShow.PaintZoomFactor  
         'iFactor=iFactor+30  
         'ImgShow.PaintZoomFactor  =  iFactor  
         'panwin(ipage)    
end  sub  
 
 
Sub  window_onunLoad()  
           '  Disable  LEAD's  OLEDropAllowed,  otherwise  the  control  will  not    
     '  be  unloaded  in  IE4  when  you  hit  the  Refresh  button  
           'ImgShow.OLEDropAllowed  =  0  
end  sub  
--></script>  
                       <p>  
                                   <OBJECT  id="cmdZoomIn"  style="LEFT:  0px;  TOP:  0px"  height="29"  width="72"  align="baseline"  
                                               border="0"  classid="CLSID:D7053240-CE69-11CD-A777-00DD01143C57"  name="cmdZoomIN">  
                                               <PARAM  NAME="ForeColor"  VALUE="2147483666">  
                                               <PARAM  NAME="BackColor"  VALUE="2147483663">  
                                               <PARAM  NAME="VariousPropertyBits"  VALUE="27">  
                                               <PARAM  NAME="Caption"  VALUE="&#25918;&#22823;">  
                                               <PARAM  NAME="PicturePosition"  VALUE="458753">  
                                               <PARAM  NAME="Size"  VALUE="1905;767">  
                                               <PARAM  NAME="MousePointer"  VALUE="0">  
                                               <PARAM  NAME="Accelerator"  VALUE="0">  
                                               <PARAM  NAME="TakeFocusOnClick"  VALUE="-1">  
                                               <PARAM  NAME="FontName"  VALUE="MS  Sans  Serif">  
                                               <PARAM  NAME="FontEffects"  VALUE="1073741824">  
                                               <PARAM  NAME="FontHeight"  VALUE="200">  
                                               <PARAM  NAME="FontOffset"  VALUE="0">  
                                               <PARAM  NAME="FontCharSet"  VALUE="0">  
                                               <PARAM  NAME="FontPitchAndFamily"  VALUE="2">  
                                               <PARAM  NAME="ParagraphAlign"  VALUE="3">  
                                               <PARAM  NAME="FontWeight"  VALUE="0">  
                                   </OBJECT>  
                                     
                                   <INPUT  id="Text1"  type="text"  size="32"  name="Text1">  
                       </p>  
                         
           </body>  
</html>  
我开始在ASP社区问时,人家让我到.net社区来,并且说语法错误,但它确实在我的机器上能正常运行的。

解决方案 »

  1.   

    在客户端查看一下页面的源代码
    看看是不是因为 asp 在服务器没有被解析就真接送到客户端了若是的话,执行以下步骤:
        1、  打开 Internet 信息服务(IIS)管理器 → 右击项目虚拟目录 → 属性
        2、  点击按钮“配置”→ 看看是否有".asp"
        3、  若没有则点击按钮“添加”以下内容
             应用程序: "C:\WINNT\system32\inetsrv\asp.dll" 
             类型: ".asp"
             动作: "GET,HEAD,POST,DEBUG"
    以上是添加 asp 的映射