S
Simon
Hi,
Just to get started....
I've created a very simple web form, "Simple", using VS and I dropped a
HTML img control on the design view. I referenced a picture and it is
displayed in browser view. Very simple.
I have created a second form and in the code-behind page I have altered the
class definition to inherit from, "Simple".
When viewing the second form in the browser the 'inherited' image from the
first form is not shown.
Examples I have found of web form inheritance tend to all deal with the
"Simple" form being only a code page (a class) that renders its content in
code rather than having any design view.
Can a Webform only inherit content from a base class that is code only or
can content in the .aspx file also be inherited?
Thanks,
gramps
Just to get started....
I've created a very simple web form, "Simple", using VS and I dropped a
HTML img control on the design view. I referenced a picture and it is
displayed in browser view. Very simple.
I have created a second form and in the code-behind page I have altered the
class definition to inherit from, "Simple".
When viewing the second form in the browser the 'inherited' image from the
first form is not shown.
Examples I have found of web form inheritance tend to all deal with the
"Simple" form being only a code page (a class) that renders its content in
code rather than having any design view.
Can a Webform only inherit content from a base class that is code only or
can content in the .aspx file also be inherited?
Thanks,
gramps