In my application I am using UltaWebTab as usercontrol called TabControl.ascx and calling this user this control in a master page. The tabcontrol has two tabs. There is another aspx page, had a reference to master pages. I want to get an instance of TabControl and Tabs in the aspx page. Is it possible?
Basically, there is an UltraWebGrid in Tab1 with a hyperlink column. On the click of hyperlink column, the result should display in the next tab and not in a separate window. UltraWebgrid1 is also created as an UserControl in the master page. Currently it is displaying in a separate window which is not the requirement. If the UltraWebTabs be converted as container rather than usercontrol, can this be achieved? Please help.
Thanks,
Hello,
I hope I get the scenario right, but I believe you can do that by using the Page.Master property - contains a reference to the parent Master Page, and from there you can call FindControl to locate the Tab instance.
For example
Page.Master.FindControl("UltraTabControl1");
Thank you for the reply. I have done the same code , but the object is returned as null. I have done in the following ways.
u = (Infragistics.WebUI.UltraWebTab.UltraWebTab)Page.Master.FindControl("TabControl_UltraWebTab1");
u.Visible = false;
else { }
u = (Infragistics.WebUI.UltraWebTab.UltraWebTab)Page.Master.FindControl("TabControl");
Infragistics.WebUI.UltraWebTab.UltraWebTab obj = (Infragistics.WebUI.UltraWebTab.UltraWebTab)tstmst.FindControl("UltraWebTab1");
4) Infragistics.WebUI.UltraWebTab.UltraWebTab obj = (Infragistics.WebUI.UltraWebTab.UltraWebTab)tstmst.FindControl("TabControl_UltraWebTab1");
All the above is returned as null only. Could you please give any suggestions?
Thanks