Infragistics ASP.NET

  • Thread starter Thread starter Mark Goldin
  • Start date Start date
Well,
What I was trying to do is to get some technical help with my design.
Infragisitcs does not support on weekend but I have something urgent.
I thought I could have asked my question here.
 
Sure.
I am adding controls to a WebTab tab.
I am trying to reference these controls in the code-behind (C#) and it fails
because I dont see that controls have been added to the form.
What am I missing here?
 
They're not part of the form. Instead the are part of the WebTab. Let's say
you have a Label control called lblName. To get to it you need to use the
FindControl method of the WebTab control like so:

Label lblName = (Label)WebTab1.FindControl("lblName");

It's basically the same method you would use if you were trying to access
items in a datagrid as the items are being created. You may want to check to
see if the control is not equal to null before you access it.

Hope this helps,
Mark Fitzpatrick
Microsoft MVP - FrontPage
 
It works, thanks.
Mark Fitzpatrick said:
They're not part of the form. Instead the are part of the WebTab. Let's say
you have a Label control called lblName. To get to it you need to use the
FindControl method of the WebTab control like so:

Label lblName = (Label)WebTab1.FindControl("lblName");

It's basically the same method you would use if you were trying to access
items in a datagrid as the items are being created. You may want to check to
see if the control is not equal to null before you access it.

Hope this helps,
Mark Fitzpatrick
Microsoft MVP - FrontPage
 
Back
Top