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

posted @ 2015-02-02 18:32  王鹏飛  阅读(572)  评论(0编辑  收藏  举报