Hi, We are updating from older version from newer version of Infragistics Asp.net , I am new using these controls.
My Old :
Dim tabPointer As Profiles.PlugIn.layout.Presentation.ProfilePersonal = _
CType(UltraWebTab1.GetTab(ProfileTabPersonalIndex).ContentPane.UserControl, _
Profiles.PlugIn.layout.Presentation.ProfilePersonal)
New : ? How do I do the same, for the highlighted ones since there is no contentPane property inside a tab.?
Please help !
Regards,
Isaac
Hi Isaac,
Thank you for your response. Glad that your issue is resolved.
Please contact me if I can be of further assistance.
Best Regards,Petar IvanovDeveloper Support EngineerInfragistics, Inc.http://ko.infragistics.com/support
I mean, I may be using the wrong terminology in my question ..sorry about that. :-)
Hi Petar,
Thank you for your response. But the previous code didn't help me either. It may be using the wrong terminology. But here is the code it worked for me.
Dim uc As WebUserControl = DirectCast(Page.LoadControl("WebUserControl.ascx"), WebUserControl)
Me.WebTab1.Tabs(1).Controls.Add(uc)
Please do not hesitate to contact me if you need further assistance.
Best Regards,
Petar IvanovDeveloper Support EngineerInfragistics, Inc.http://ko.infragistics.com/support
Thank you for your reply. My apologies for the previous misunderstanding.
Here is some sample code illustrating how a textbox's text inside a user control (which is in a WebTab) can be accessed and output.
// get the user control objectUserControl control = (UserControl)WebTab1.Tabs.FindTabFromKey("MyTab").FindControl("myControl"); //get the textBox objectTextBox box = (TextBox)control.FindControl("textColor"); // output the textbox's textDebug.WriteLine(box.Text);
// get the user control objectUserControl control = (UserControl)WebTab1.Tabs.FindTabFromKey("MyTab").FindControl("myControl");
//get the textBox objectTextBox box = (TextBox)control.FindControl("textColor");
// output the textbox's textDebug.WriteLine(box.Text);
Note that alternatively, a WebTab tab may also be accessed by its index.
Please tell me if this helps.