.net自带UpdatePanel注册Javascript

framework2.0:

Manager.RegisterStartup(UpdatePanel1, UpdatePanel1.GetType(), "", "alert('提示:产品添加成功!');if(confirm('是否继续添加?取消转到产品管理页')){alert('本页面继续添加')}else{open('productManage.aspx','_self');}", true);

3.5以上

ScriptManager.RegisterStartupScript(UpdatePanel1, UpdatePanel1.GetType(), "", "jQuery('#trShipService').hide();", true);
原文地址:https://www.cnblogs.com/wugang/p/2395408.html