文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>在UpdatePanel中使用JavaScript脚本

在UpdatePanel中使用JavaScript脚本

时间:2010-10-12  来源:Jack Fu

页面中加入了UpdatePanel后,通过

Response.Write("<script>alert('这是调用写在server的JS')</script>")

 

 

来调用客户端脚本,无任何提示的无反应。采用

ScriptManager.RegisterClientScriptBlock (Control, Type, String, String, Boolean)

 

方法.参数详解(Control control,Type type,string key,string script,bool addScriptTags)
如:

ScriptManager.RegisterClientScriptBlock(UpdatePanel1,this.GetType(), "success", "alert('添加成功')", true);

 

相关阅读 更多 +
排行榜 更多 +
消灭星星开心版

消灭星星开心版

休闲益智 下载
消灭星星duan

消灭星星duan

休闲益智 下载
蜘蛛斗士3

蜘蛛斗士3

动作格斗 下载