When .NET compiles, it requires a reference to every control (module) that exists on the page. You should be able to reference the control via its "Name" property, which by default, ends up being the name of the reference.
So, instead of form1.statusbar.Text = "Whoah", you'd do: statusbar.Text = "Whoah"
If you're trying to reference a control from a different page, then you're going to need a reference to that page. I don't have an example I could cut/paste right now because my code is on another machine. But if this is your issue, then I'd look up "Context.Handler"- that's an easy way to grab controls from past pages.
Last edited by Robaggio; 05-22-2006 at 08:49 PM..
|