C#后台执行js

StringBuilder sb = new StringBuilder();
sb.Append("<script type='text/javascript'>");
sb.Append(@"$(function () {$('#tabs').tabs({active:" + activeTabIndex + "});});"); //设置第二个标签页为激活状态
sb.Append("</script>");
ClientScript.RegisterStartupScript(this.GetType(), "SetActiveTab", sb.ToString());
posted on 2014-10-08 18:05  Frank.Fan  阅读(773)  评论(0编辑  收藏  举报