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
-----------------------------------------------------
这段代码在我的电脑上测试通过