第一种,这种弹出不会导致页面变乱: Page.ClientScript.RegisterStartupScript(this.GetType(), "Cscript", "
"); Page.ClientScript.RegisterStartupScript(this.GetType(), "Cscript", "
"); 第二种是在UpdatePanel中弹出提示框: ScriptManager.RegisterClientScriptBlock(UpdatePanel1, this.GetType(), "click", "alert('添加成功');this.location='Img.aspx?v=2';", true);
弹出确认框的几种方式
最新推荐文章于 2024-06-04 10:51:46 发布