.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);

 

posted @ 2012-03-14 09:48  划破黑夜  阅读(284)  评论(0编辑  收藏  举报