/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");
}
}
|
请发表评论