投票问题???
有个投票系统,点击查看时,它弹出个小窗口(400*300)!(votedetail.asp)显示投票结果
但是我投票时,它显示整个页面(800*600)(votedetail.asp)!怎样使他投票后也在弹出小窗口显示!!部分代码如下:
<SCRIPT language=JavaScript>
function windowopen1(loadpos)
{controlWindow=window.open(loadpos,"votewin","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=400,height=300");
}
</SCRIPT>
...
<form method=post action="vote.asp">
...
<input type=submit value="提交">
<input type=button value="查看"onclick=javascript:windowopen1('votedetail.asp');>
...
vote.asp 代码如下:
<%
rb=Request("rb")
if rb<>"" Then
Set myConnection = Server.CreateObject("ADODB.Connection")
myConnection.Open "driver={Microsoft Access Driver (*.mdb)};dbq=" & Server.MapPath("vote.mdb")
Set tempRs = Server.CreateObject("ADODB.Recordset")
tempRs.ActiveConnection = myConnection
tempRs.Open "Update vote Set c_num=c_num+1 where id="&rb,myConnection,2,3,1
Set tempRs = Nothing
Set myConnection = Nothing
Response.Redirect "votedetail.asp"
End if
Response.Redirect "showvote.asp"
%>