J
john bailo
For a c# web application, I created a user control that includes a form in
control.
The idea is, on the main Page, when the user clicks Submit from
the master form, that makes the user control visible and gives
it new functionality, but retains the look of the top half of
the master page. I then hide the original submit button.
Ok, now, after pressing the Submit button in the user control, I want
to change the look of the master page.
The questions are:
(0) how do I gain access to the properties of the Page that
instantiates the user control, from the user control itself?
(1) Is some kind of upwards/backwards inheritence is necessary?
(2) Or do I pass the whole Page as an object to the click event?
control.
The idea is, on the main Page, when the user clicks Submit from
the master form, that makes the user control visible and gives
it new functionality, but retains the look of the top half of
the master page. I then hide the original submit button.
Ok, now, after pressing the Submit button in the user control, I want
to change the look of the master page.
The questions are:
(0) how do I gain access to the properties of the Page that
instantiates the user control, from the user control itself?
(1) Is some kind of upwards/backwards inheritence is necessary?
(2) Or do I pass the whole Page as an object to the click event?