一个初学者的问题!!!
我现在手上有一个ASP的程序,现在用InterDev打开后,无法点击DIESGN界面时提示出错。提示错误如下:
the editer unable to switch to design view because there is unquoted asp script in an attribute or inside a <select> tag
问题点数:50、回复次数:8Top
1 楼tigerwen01(小虎)回复于 2003-06-04 11:59:08 得分 30
格式不同,试着打开一个纯ASP文件看看。Top
2 楼sdliubo(Fuck Japanese!)回复于 2003-06-04 11:59:08 得分 20
原来的代码中有错误
<select >标签不完整等原因。Top
3 楼alianasia(孤鹰)回复于 2003-06-04 11:59:48 得分 0
看看是不是<select>里的什么地方写得不对?
你把总是写详细点。或贴出来。Top
4 楼alianasia(孤鹰)回复于 2003-06-04 12:00:32 得分 0
应该是问题写详细点.sorry
Top
5 楼gemoer(默儿)回复于 2003-06-04 14:34:57 得分 0
ASP程序如下:
<!-- #include file="logo.asp" -->
<%
mysql="select * from TCXX where show='true' order by id desc"
rst.open mysql,cnn,3,3
if not (rst.bof and rst.eof) then
%>
<SCRIPT language=javascript>
window.open("TCXX.asp","","width=420,height=300","resizable=yes,scrollbars=yes,toolbar=yes,menubar=yes,fullscreen=yes");
</SCRIPT>
<%
end if
rst.close
%>
<tr>
<td width="150" valign="top" bgcolor="#eeeeff" >
<!-- #include file="left.asp" -->
</td>
<td width="458" valign="top" align="center" rowspan="2">
<!-- #include file="include/time_show.inc" -->
<table width="96%" border="0" cellspacing="0" cellpadding="0" background="img/bg4.gif">
<tr align="center">
<td colspan="2" bgcolor="#6699FF" height="25" valign="middle">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="middle" width="20"> </td>
<td valign="middle">
<DIV id=Clock style="COLOR: white;">
</DIV>
</td>
<td width="30"><img src="img/clock.gif" align="absmiddle"></td>
</tr>
</table>
</td>
</tr>
<tr>
<td align="center"> <img src="img/jdsbcjianjie.gif" width="176" height="40"></td>
<td rowspan="2" width="60%" align="center"><img src="img/landscape_co.gif" width="268" height="170"></td>
</tr>
<tr>
<% if application("xtdm")=0 then%>
<td><span class="t2"> 中国石化九江分公司机动设备处是负责全公司设备管理的职能处室。机动设备处设动设备、静设备、水质、电气、仪表、检修计划、费用管理7个专业管理岗位。</span></td>
<% elseif application("xtdm")=1 then%>
<td><span class="t2"> 九江石化建安公司是九江石化股份公司公司的下属的设备维修公司,负责股份公司的动、静、电气、仪表设备的维修维护工作。</span></td>
<% end if %>
</tr>
<tr>
<td colspan="2"><img src="img/jishixinxi.gif" width="206" height="35"><img src="img/bg_line.gif" width="15" height="35"><img src="img/bg_line.gif" width="15" height="35"><img src="img/bg_line.gif" width="15" height="35"><img src="img/bg_line.gif" width="15" height="35"><img src="img/bg_line.gif" width="15" height="35"><img src="img/bg_line.gif" width="15" height="35"><img src="img/bg_line.gif" width="15" height="35"><img src="img/bg_line.gif" width="15" height="35"><img src="img/bg_line.gif" width="15" height="35"><img src="img/bg_line.gif" width="15" height="35"><img src="img/bg_line.gif" width="15" height="35"><img src="img/bg_line.gif" width="15" height="35"><img src="img/bg_line.gif" width="15" height="35"><img src="img/bg_line.gif" width="15" height="35"><img src="img/bg_line.gif" width="15" height="35"><img src="img/bg_circle.gif" width="14" height="39"></td>
</tr>
<tr>
<td colspan="2">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="2" bgcolor="#CCCCCC"></td>
<td bgcolor="#eeeeff" align="center">
<table width="95%" border="0" cellspacing="0" cellpadding="4">
<tr>
<td colspan="3" height="10"></td>
</tr>
<tr>
<td><font color="#FF0000">标题</font></td>
<td><font color="#0000FF">日期</font></td>
<td><font color="#FF0000">点击次数</font></td>
</tr>
<%
mysql="select * from JSXX order by id desc"
rst.open mysql,cnn,3,3
if not (rst.bof and rst.eof) then
jsxx_hyxx_number=0
do while (not rst.eof ) and jsxx_hyxx_number<5
jsxx_hyxx_number=jsxx_hyxx_number+1
%>Top
6 楼gemoer(默儿)回复于 2003-06-04 14:35:45 得分 0
下面还有的是:
<tr>
<td><a href="JSXXcontent.asp?thisid=<%=rst("id")%>" target="_blank"><%=changestr(stringcut(rst("title"),25))%></a></td>
<td><font color="blue"><%=rst("time")%></font></td>
<td><font color="red"><%=rst("hit")%></font>
</tr>
<%
rst.movenext
loop
else
%>
<tr align="center">
<td colspan="3"> <marquee scrollamount='1' scrolldelay=60'><font color="#FF0000">目前还没有任何即时信息公布!</font></marquee></td>
</tr>
<%
end if
rst.close
%>
<tr>
<td colspan="3"> </td>
</tr>
</table>
</td>
<td width="2" bgcolor="#CCCCCC"></td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="2" height="2" bgcolor="#CCCCCC"></td>
</tr>
<tr align="right">
<td colspan="2"><a href="admiJSXX.asp" target="_blank"><img src="img/more.gif" border="0"></a></td>
</tr>
<tr align="right">
<td colspan="2" height="1"></td>
</tr>
<tr>
<td colspan="2"><img src="img/huiyixinxi.gif" width="206" height="36"><img src="img/bg_line2.gif" width="15" height="35"><img src="img/bg_line2.gif" width="15" height="35"><img src="img/bg_line2.gif" width="15" height="35"><img src="img/bg_line2.gif" width="15" height="35"><img src="img/bg_line2.gif" width="15" height="35"><img src="img/bg_line2.gif" width="15" height="35"><img src="img/bg_line2.gif" width="15" height="35"><img src="img/bg_line2.gif" width="15" height="35"><img src="img/bg_line2.gif" width="15" height="35"><img src="img/bg_line2.gif" width="15" height="35"><img src="img/bg_line2.gif" width="15" height="35"><img src="img/bg_line2.gif" width="15" height="35"><img src="img/bg_line2.gif" width="15" height="35"><img src="img/bg_line2.gif" width="15" height="35"><img src="img/bg_line2.gif" width="15" height="35"><img src="img/bg_circle2.gif" width="14" height="39"></td>
</tr>
<tr>
<td colspan="2">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="2" bgcolor="#CCCCCC"></td>
<td bgcolor="#FFFFee" align="center">
<table width="95%" border="0" cellspacing="0" cellpadding="4">
<tr>
<td colspan="3" height="10"></td>
</tr>
<tr>
<td><font color="#FF0000">标题</font></td>
<td><font color="#0000FF">日期</font></td>
<td><font color="#FF0000">点击次数</font></td>
</tr>
<%
'if application("xtdm")=0 then
mysql="select * from HYXX order by id desc"
'elseif application("xtdm")=1 then
' mysql="select * from SBGK order by id desc"
'end if
rst.open mysql,cnn,3,3
if not (rst.bof and rst.eof) then
jsxx_hyxx_number=0
do while (not rst.eof ) and jsxx_hyxx_number<5
jsxx_hyxx_number=jsxx_hyxx_number+1
%>
<tr>
<td><a href="HYXXcontent.asp?thisid=<%=rst("id")%>" target="_blank"><%=changestr(stringcut(rst("title"),25))%></a></td>
<td><font color="blue"><%=rst("time")%></font></td>
<td><font color="red"><%=rst("hit")%></font>
</tr>
<%
rst.movenext
loop
else
%>
<tr align="center">
<td colspan="3"> <marquee scrollamount='1' scrolldelay=60' direction="right"><font color="#0000ff">目前还没有任何设备新闻公布!</font></marquee></td>
</tr>
<%
end if
rst.close
%>
<tr>
<td colspan="3"> </td>
</tr>
</table>
</td>
<td width="2" bgcolor="#CCCCCC"></td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="2" height="2" bgcolor="#CCCCCC"></td>
</tr>
<tr align="right">
<td colspan="2"><a href="admiHYXX.asp" target="_blank"><img src="img/more.gif" border="0"></a></td>
</tr>
</table>
</td>
<td valign="top" width="150" align="right" rowspan="2" background="img/bg5.gif">
<% if application("xtdm")=0 then%>
<!-- #include file="right.asp" -->
<% end if %>
</td>
</tr>
<tr>
<td width="150" align="center" bgcolor="#eeeeff" valign="top"><marquee direction="left" scrollamount="1" scrolldelay="50" ><font color="#FF00FF">您</font><font color="#FF0033">是</font><font color="#990033">本</font><font color="#990099">站</font><font color="#3300FF">第</font>
<font color="red">
<!-- #include file="include/counter.asp" -->
</font> <font color="#3300CC">位</font><font color="#330066">访</font><font color="#336600">客</font> </marquee>
<!-- #include file="include/mouse_follow.inc" -->
</td>
</tr>
<!-- #include file="buttom.asp" -->
Top
7 楼gemoer(默儿)回复于 2003-06-04 14:36:55 得分 0
希望哪位高手帮忙指出是什么问题,引起的!!!Top
8 楼Aaronlau2002(爆裂旋风)回复于 2003-06-04 15:01:13 得分 0
没有错误,只要你执行没问题!
导致这种错误提示是因为某些成对的html标签被脚本代码隔断
给你一点建议:
做asp程序时选用工具时要根据你的实现阶段而定,dw和interDEV一个也不能少!
首先你可以用dw来完成一个大概的框架,里边不要有脚本代码。
然后在dw中关掉你的页面,进入interdev,实现脚本代码的功能,不要去调界面,尽管这时很难看,一直到调试执行无误,基本满足你的功能要求。
再次进入dw,调整界面。注意脚本代码的位置不能随便改动,除非你非常熟练。
强烈建议使用dw时,代码视图和设计视图同时打开,有利于提高!
interdev的优势是设计代码时能自动弹出对象成员列表
dw做界面非常好,但出于专利没有上述功能
至于frontpage,我认为它简直是垃圾,也许是dw太好用了吧 :)Top



