惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
C
CERT Recently Published Vulnerability Notes
V
Vulnerabilities – Threatpost
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
L
Lohrmann on Cybersecurity
C
CXSECURITY Database RSS Feed - CXSecurity.com
Schneier on Security
Schneier on Security
T
Threatpost
P
Proofpoint News Feed
MongoDB | Blog
MongoDB | Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
大猫的无限游戏
大猫的无限游戏
T
Threat Research - Cisco Blogs
罗磊的独立博客
Security Latest
Security Latest
D
Docker
S
Secure Thoughts
博客园 - 聂微东
A
Arctic Wolf
Recorded Future
Recorded Future
雷峰网
雷峰网
Microsoft Azure Blog
Microsoft Azure Blog
The Cloudflare Blog
P
Palo Alto Networks Blog
Project Zero
Project Zero
Blog — PlanetScale
Blog — PlanetScale
D
Darknet – Hacking Tools, Hacker News & Cyber Security
H
Help Net Security
T
The Blog of Author Tim Ferriss
Latest news
Latest news
AWS News Blog
AWS News Blog
U
Unit 42
Stack Overflow Blog
Stack Overflow Blog
The GitHub Blog
The GitHub Blog
Know Your Adversary
Know Your Adversary
Vercel News
Vercel News
WordPress大学
WordPress大学
Spread Privacy
Spread Privacy
F
Full Disclosure
Martin Fowler
Martin Fowler
T
The Exploit Database - CXSecurity.com
Attack and Defense Labs
Attack and Defense Labs
Y
Y Combinator Blog
Microsoft Security Blog
Microsoft Security Blog
V
V2EX
M
MIT News - Artificial intelligence
P
Proofpoint News Feed
小众软件
小众软件
宝玉的分享
宝玉的分享

博客园 - Emmet.C

[求助]关于Vsiual Studio.NET 2005中Error List种错误的定位问题 【求助】关于asp.net中的'Thread was being aborted'异常 安装Tomcat 5.0.28备注 如何在运行时定制DataGrid的显示风格? asp.net中如何回车触发指定按钮的事件 Jbuilder2005安装备注 使用Singleton改善ASP.NET性能备注 WinForm界面模式 如何定制WebCarlendar类型控件的星期格式 .NET在Debug模式下的编译错误 DataGrid动态绑定 Infragistics UltraWebTab的奇怪问题 架构设计备注(用户以及操作权限管理) 关于通过手机收发短信的相关资源 Read CPU ID(from CSDN) 可用性相关的资料站点 万网企业邮箱开始提供垃圾邮件过滤功能了 为何使用表格排版是不明智的? 申请了GMail
Infragistics.WebUI.UltraWebTab.v4.3使用备注
Emmet.C · 2005-01-25 · via 博客园 - Emmet.C

总结了在使用Infragistics.WebUI.UltraWebTab.v4.3中出现的一些问题,记录如下备查。
本贴随着时间推移持续更新中。

如何调用Tab中的WebControl?
在使用WebTab的时候可能存在这样的需求:在Tab中放置的是自己开发的WebControl,需要在点击Tab时激发WebControl的特定方法,例如初始化之类的。
在刚开始的时候我直接使用控件引用在进行调用,结果总是报“未将对象引用设置到对象的实例。”之类的错误。后来还好经验丰富:D联想到DataGrid的使用方法,一试,搞定。
原来应该使用Tab.FindControl()方法来取得对控件的引用。类似于这样:

        private void UltraWebTab1_TabClick(object sender, Infragistics.WebUI.UltraWebTab.WebTabEvent e)
        
{
            
switch(e.Tab.Text) 
            
{
                
case "用户管理":                    
                    myCfgUsers 
= (cfgUsers)e.Tab.FindControl("myCfgUsers");
                    myCfgUsers.InitData();
                    
break;
                
case "用户组管理":
                    myCfgUserGroups 
= (cfgUserGroups)e.Tab.FindControl("myCfgUserGroups");
                    myCfgUserGroups.InitData();
                    
break;
                
case "数据角色管理":
                    myCfgDataRoles 
= (cfgDataRoles)e.Tab.FindControl("myCfgDataRoles");
                    myCfgDataRoles.InitData();
                    
break;
                
case "字典管理":
                    myCfgDictionary 
= (cfgDictionary)e.Tab.FindControl("myCfgDictionary");
                    myCfgDictionary.InitData();
                    
break;
                
case "日志管理":
                    myCfgLog 
= (cfgLog)e.Tab.FindControl("myCfgLog");
                    myCfgLog.InitData();
                    
break;
            }

        }


当然,如果要使用TabClick事件的话,别忘了将WebTab的AutoPostBack设为True。;)