·您现在的位置: 云翼网络 >> 文章中心 >> 网站建设 >> 网站建设开发 >> ASP.NET网站开发 >> asp.net 后台注册脚本

asp.net 后台注册脚本

作者:佚名      ASP.NET网站开发编辑:admin      更新时间:2022-07-23

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