使用Iframe和ScriptManager进行弹出框和地址转向代码

后台添加如下即可:           

 ScriptManager.RegisterStartupScript(thisthis.GetType(), DateTime.Now.Ticks.ToString(),                         "<script>alert('" + "修改成功" + "');window.location.href='" + Request.UrlReferrer.ToString().Replace("AddMsgReplay.aspx""SubMyMessage.aspx") + "'</script>"false); 

posted @ 2012-05-31 11:10  litao6664  阅读(181)  评论(0编辑  收藏  举报