You could either refer to the current context (I think "this" will get you
access to the context in a UC). Or you could pass a reference to the parent
page when the control is created so that you have direct access.
A better way might be to define methods and properties for the usercontrol
and define the state using attribute on the HTML tags. This way the control
does not need to know what page it is one, but rather just needs to know its
state. What happens if you add a new page that requires the usercontrol, do
you always want to update the control, or just pass in parameters?
"Joe Fallon" <jf******@nospamtwcny.rr.com> wrote in message
news:u$**************@TK2MSFTNGP12.phx.gbl...
I have a user control which can appear on many pages.
The control needs to know which page it is on so it can render itself
correctly.
What is the best way for the control to find out what page is being
requested?
Code snippet would be great.
Thanks!
--
Joe Fallon