我在后台代码中添加
Page.ClientScript.RegisterStartupScript(this.GetType(), this.GetType().ToString(), "<script type='text/javascript'>alert('成功')</script>");
为什么没有窗口弹出啊,用的是IE8
Page.ClientScript.RegisterStartupScript(this.GetType(), this.GetType().ToString(), "<script type='text/javascript'>alert('成功')</script>");
为什么没有窗口弹出啊,用的是IE8
应该和代码没关系吧
看下有没有执行这段话
如果用到了,改成这个就可以了
ScriptManager.RegisterStartupScript(this.UpdatePanel1, GetType(), "updateScript", "alert('成功');", true);
this.Page.RegisterClientScriptBlock(key,script)
LZ 去看看 都说别用IE8