首页 > 学院 > 开发设计 > 正文

asp.net 后台注册脚本

2019-11-17 02:00:05
字体:
来源:转载
供稿:网友

asp.net 后台注册脚本

string myScript = "function ShowPanel() { $('.nav a[href=/"#" + PanelType.wenben.ToString() + "/"]').tab('show'); }"; ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "myScript", "<script>" + myScript + "</script>", false); ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "myScript1", "<script>$(document).ready(function () {ShowPanel(); });</script>", false);


发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表