我的写法一般是下面的方法
if(UserService.UpdateOnlineSet(str, userID))
{

Response.Write("<script>alert('设置成功');document.location.href=document.location.href;</script>");
}
else
{
Response.Write("<script>alert('设置失败');document.location.href=document.location.href;</script>");
}当在服务器端执行操作,出现提示信息的时候,页面会空白。我想得到页面不会空白,且弹出提示框的效果