Custom TabControl for asp.net page

/Files/nanshouyong326/TabControl.rar


[assembly: WebResource("AdvControls.MyTabControlShowTab.js", "text/javascript")]
//AdvControls为文件目录

        protected override void OnPreRender(EventArgs e)
        {
            base.OnPreRender(e);
            if (DesignMode)
            {
                _tabPages[_currentDesignTab].TabBody.InstantiateIn(this);
            }

            System.Type type = typeof(MyTabControl);
            string url = Page.ClientScript.GetWebResourceUrl(type, "AdvControls.MyTabControlShowTab.js");
            if (!Page.ClientScript.IsClientScriptIncludeRegistered(type, type.FullName))
            {
                Page.ClientScript.RegisterClientScriptInclude(type, type.FullName, url);
                //Page.ClientScript.RegisterClientScriptResource(type, "AdvControls.MyTabControlShowTab.js");
            }
        }

posted @ 2007-11-07 16:02  南守拥  阅读(658)  评论(2编辑  收藏  举报