日期:2014-05-17  浏览次数:21113 次

response输出alert到客户端出现一片空白,
if(!rs.EOF){
            Response.write( " <script   type= 'text\/javascript '> alert( '此用户名已经存在 ');location.href= 'register.html ' <\/script> ");
            Response.End();
    }
×××××××××××××××××××××××××××××××
如何解决?

------解决方案--------------------
if(!rs.EOF){
Response.Clear();
Response.write( " <script type= 'text\/javascript '> alert( '此用户名已经存在 ');location.href= 'register.html ' <\/script> ");
Response.End();
}

------解决方案--------------------
if(!rs.EOF){
Response.write( " <script type= 'text/javascript '> alert( '此用户名已经存在 ');location.href= 'register.html ' </script> ");
Response.End();
}

------解决方案--------------------
if(!rs.EOF){这个if语句好像不ASP VBscript的写法.
-----------------------------------------------------
if rs.EOF=False then
Response.write( " <script language= 'javascript '> alert( '此用户名已经存在 ');location.href= 'register.html ' </script> ");
Response.End();
end if
-----------------------------------------------------
这段代码在我的电脑上测试通过