当前位置: 代码迷 >> ASP >> response输出alert到客户端出现一片空白,该如何处理
  详细解决方案

response输出alert到客户端出现一片空白,该如何处理

热度:163   发布时间:2012-02-15 12:09:43.0
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
-----------------------------------------------------
这段代码在我的电脑上测试通过
  相关解决方案