Updatepanel 注册javascript 方法

ScriptManager.RegisterStartupScript(this.UpdatePanel1, this.GetType(), "test", "alert('test');", true);

注意第一个参数一定要选对,如果不在相应的更新区域,则无法执行脚本。

posted on 2015-01-11 17:16  空明流光  阅读(129)  评论(0编辑  收藏  举报

导航