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:
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
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:
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
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.