Updatepanel 注册javascript 方法

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

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

原文地址:https://www.cnblogs.com/nanfei/p/4216806.html