If you have a usercontrol called "footer" than I'm going to assume it's codebehind class is "footer" so...
If you aspx code behind you should be able to do this...
Code:
public footer footer1;
Then you can use "footer1" in your codebehind methods. For any control that is defined in an ascx or aspx file (the HTML), you put a line in the codebehind to declare the corresponding control ID. Just remember not to use the "new" keyword. The code for the control in the HTML causes the control to be instantiated. You just need the control ID declared in the code behind.
Also, you should use something like this in the code behind:
Code:
protected withevents <controltype> <controlID>;
This way you get the control's events to fire in the codebehind.
(Please excuse any C# typos, I work in
VB.)
------------------------
Peter
Somewhere outside
Boston, MA USA Earth