积极答复者
为什么ScriptManager.RegisterStartupScript 后面跟return 或者Response.Redirect语句就无法执行

问题
答案
-
能不能说的详细点?
另外,如果想alert点击确定后转到xxx.aspx,该怎么写呢?
ScriptManager.RegisterStartupScript(UpdatePanel, typeof(UpdatePanel), "confirm", "alert('成功!');location.href='xxx.aspx'", true);
Shadowと愉快なコード達
Please correct me if my concept is wrong- 已建议为答案 TerryChuang 2011年8月4日 9:40
- 已标记为答案 孟宪会Moderator 2011年8月8日 1:30
全部回复
-
能不能说的详细点?
另外,如果想alert点击确定后转到xxx.aspx,该怎么写呢?
ScriptManager.RegisterStartupScript(UpdatePanel, typeof(UpdatePanel), "confirm", "alert('成功!');location.href='xxx.aspx'", true);
Shadowと愉快なコード達
Please correct me if my concept is wrong- 已建议为答案 TerryChuang 2011年8月4日 9:40
- 已标记为答案 孟宪会Moderator 2011年8月8日 1:30