Hello,
In fact I want to be able to alter my page(s) with a "main controller"
(the class in the class library). I have several pages that differs only
by one textbox or so. And instead of creating new pages, I made a few
"pattern pages" in which I only hide/modify some controls depending on the
page to load. (I don't think Master page can help).
So, in the page_load (or just after) I call the method in the controller
class to make the adjustments. I pass the calling page as an argument but
in the code of the method this is a generic System.Web.UI.Page and I need
to cast it in the right "pattern page" type to access the controls.
There is where I need to reference the pages.
I hope it is a bit clearer.
Many thaks,
Ugo
What are you trying to do? You can't access them as you can with
winform-windows, where you can read values from hidden windows.
With webforms (asp.net) all page-values are gone as soon as the request
has finished processing.
You *can* get at the current Request or Session, using
System.Web.HttpContext.Current.Request (or .Session).
You will need a project-reference to System.Web.dll for this.
Hans Kesting