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 IsaacG,
Here is an example of how you should be able to get the ID of your user control:
UltraWebTab1.FindControl("myUserControlID").ID
Please tell me if this helps.
Best Regards,
Petar IvanovDeveloper Support EngineerInfragistics, Inc.http://ko.infragistics.com/support
Hi Petar,
Thank you for your response. I tried but it didnt help. I am using WebTab not UltraWebTab.
//I tried the following code:
Control userCtrl = WebTab1.Tabs[0].FindControl("WebUserControl1.ascx");
Label labelInsideUserCtrol = (System.Web.UI.WebControls.Label)WebTab1.Tabs[0].FindChildControl("Label1");
if (userCtrl != null)
labelInsideUserCtrol.Text = "User Control Found";
else
labelInsideUserCtrol.Text = "User Control Not Found";
Result is it is showing userCtrl = null.
I am trying to get the reference of the UserControl,
Hi Isaac,
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.
Best Regards,Petar IvanovDeveloper Support EngineerInfragistics, Inc.http://ko.infragistics.com/support
Dear
I added dynamically tab controls using Template (From CodeBehind) and then try to find out controls in added tabs. But I unable to find controls. How it is possible?? Please let me know as early as possible.
Regards
Suday
Please do not hesitate to post questions on the forum / open a support ticket if you are experiencing issues.
That is awesome. Thank you so much for your concern.Will post all my concerns over that support site you sent me.
I have created a support case for you with an ID of CAS-75057-WY9KGZ in order for us to be able to attend to your issues with WebTab.
You can observe your active support tickets by going to infragistics.com > My IG > My Support Activity.
Thank you Petar. We are having problems with WebTab lately. Is there a way I can send a sample here which is more than limited MB we can upload?
If so, Please let me know.