后台刷新当前页面和弹出对话框跳转页面

//弹出对话框跳转
Response.Write("<script language=javascript>alert('删除成功!');location='test.aspx';</script>");
//刷新当前页面
Page.ClientScript.RegisterClientScriptBlock(this.GetType(), Guid.NewGuid().ToString(), string.Format("<script>window.location.href=window.location.href;</script>"));

posted @ 2015-02-15 16:39  914556495  阅读(232)  评论(0)    收藏  举报