我的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>华鼎博视档案显示示例</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="放大">
<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社区来,并且说语法错误,但它确实在我的机器上能正常运行的。
我的服务器端win2000sp4,装了vb,office,vs2003,客户端是干净的win2000或winXP
我以前没用过asp,不知怎么才能让asp页面在客户端正常?
该asp页面大体如下:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<title>华鼎博视档案显示示例</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="放大">
<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社区来,并且说语法错误,但它确实在我的机器上能正常运行的。
解决方案 »
- asp.net中的问题
- net数据库导出程序
- 网址显示格式
- FCKeditor 上传文件的出错请高手进来帮我看看
- freetextbox 3.1.6自定义上传图片的问题
- IListSource 不包含任何数据源。求救
- Hello world
- 大侠们快来帮忙解决一下啦,ASP的页面我运行正常,为何我用到.NET中就JAVASCRIPT报错啊?在线等
- 高分求助,一个页面刷新问题 急!求大虾帮忙 !
- TreeView做权限树(动态绑定数据),Check框选择后如何获取该Node值?(跟页面执行顺序太有关系了,绝对值得thinking)附上代码,请高人
- “允许自定义分页”这个属性有什么用,无论它是true还是false都可以自己做分页啊???????
- RegisterClientScriptBlock的代码,找不着错误!
看看是不是因为 asp 在服务器没有被解析就真接送到客户端了若是的话,执行以下步骤:
1、 打开 Internet 信息服务(IIS)管理器 → 右击项目虚拟目录 → 属性
2、 点击按钮“配置”→ 看看是否有".asp"
3、 若没有则点击按钮“添加”以下内容
应用程序: "C:\WINNT\system32\inetsrv\asp.dll"
类型: ".asp"
动作: "GET,HEAD,POST,DEBUG"
以上是添加 asp 的映射