Response.Write("<script> alert('恭喜 clientuser1注册成功!!!\\r\\n正在跳转到登录界面......');window.location.href='登录.aspx'; </script> ");

注意红色部分,要转义后才可以,不能是\r\n

Response.Write的alert换行问题

 

相关文章: