Hi.
I re-read my original post and I think I need to clarify. It's not that I'm having trouble getting the value for a control on the client side. The problem is best described by a detailed sequence of steps.
I'll also include the project so you can see what I'm trying to do.
1) There is a list of reports defined in an xml file. A report has the form <report name='blah' parameters='blah.ascx' />
2) The list of reports is loaded into a tree view
3) On the client side, a selection change in the treeview triggers a callbackpanel to load the ascx file for the report.
4) I don't know what's in the ascx file. All I know is that there are some controls that define the parameters for the report.
5) After the control is loaded on the client side I would like to be able to loop through the controls of the dynamically loaded ascx file, get their names and values and build a url so that I can call the actual report via this url. The server that runs the report is a completely different thing and not part of this. This system is solely to capture the parameters for the report and to build the url.
I've tried to loop through the control names (since I don't know the names) by relying on a naming convention. This is problematic since the DevExpress controls are composed of many parts and so knowing which control is real and which control is a sub-control is difficult.
What I'd like to be able to do is reference the controls via the callbackpanel.controls collection during a postback that is triggered by a button:
1) tree of controls loads
2) user clicks a treenode
3) the ascx for the treenode is loaded into the callbackpanel
4) user fills out controls
5) user presses 'go' button
6) during the postback for the 'go' button i collect the names and values for the callbackpanel.controls collection and build my url
The only flaw in the reasoning seems to be that the callbackpanel.controls collection is empty during the button postback, presumably since during that postback i'm not reloading the controls into the callback panel in the page_load event. The reason is, at that point, i don't know what they are. I supposed I could get the focused node for the tree, load the controls in the page_load event again and try to fill them from viewstate but I have questions:
1) Can this be done?
2) Does the viewstate get sent back for controls that are dynamically loaded into a callbackpanel during a postback (in this case the button)?
3) Is there an easier way to do this?
I appreciate the help :)
Cheers,
Dave