高手请看,错在什么地方?
一种方式是通过超链接打开一个页面,别一种是通过弹出页面控制页面尺寸,但问题是:点 "编辑 "打开的页面是合适的,但点 "修改 "打开的页面始终地址为:127.0.0.1/plan.asp?id=15(数据显示为每页15行),即ID取到的值是页面的最后一个.不知错在什么地方,请高手指教.谢谢
<td align= "center " height= "25 " width= "80 "> <a href= "plan.asp?id= <%=rs( "id ")%> " target=_blank >
<font color= "#FF0000 "> 编辑 </font> </a>
</td>
<td>
<A href= "# " onclick= "newwindow2(this);return false " target= " "> 修改
<script language= "JavaScript ">
<!--
function newwindow2(obj,PublishInfoID){window.open( "plan.asp?id= "+ <%=rs( "id ")%> , "width=800,height=800,scrollbars=no,left=150,top=300,status==yes,location=yes,toolbar=yes, directories=yes,menubar==yes ");}
// -->
</script>
</td>
------解决方案-------------------- <a href= "# " onclick= "window.open( 'plan.asp?id= <%=Trim(rs( "id "))%> ', 'width=800,height=800,scrollbars=no,left=150,top=300,status==yes,location=yes,toolbar=yes,directories=yes,menubar==yes ') " target= " "> 修改 </a>
========================》》》》》》》》》》》》》》》
<a href= "# " onclick= "window.open( 'plan.asp?id= <%=Trim(rs( "id "))%> ', 'width=800,height=800,scrollbars=no,left=150,top=300,status=yes,location=yes,toolbar=yes,directories=yes,menubar=yes ') " target= " "> 修改 </a>