Ask a Question related to ASP.NET General, Design and Development.
-
Mircea Pleteriu #1
Page inheritance
I have created an aspx page called Page1. The class associated with the page
in code behind is abstract.
Now I want to create another aspx page call Page2 that inherits the Page1.
It seems like the Page2 inherits the code behind defined by Page1 but it
does not inherits the html content (the controls) of the Page1.
So, I do not have the controls on my new page.
Can somebody tell me where I am wrong?
Mircea Pleteriu Guest
-
inheritance
by default new aspnet webforms inherits from page which gives us the intellisense of the basic objects such as request, response etc. I want my... -
Inheritance in ActionScript
Hi, I am trying to get to grips with Inheritance in ActionScript.. I have created a symbol in the library called "Wall" and it is linked to a... -
Aliasing and Inheritance
Hi, apparently aliased methods are not inherited. Why is that so? irb(main):001:0> class A irb(main):002:1> def a; puts "A"; end... -
Template inheritance (DW MX)
No, not directly at least. I was faced with the same problem and ended up having to write some Perl scripts in order to generate the new templates.... -
Page inheritance (template) doesn't work in virtual directory
An update on my original message seens like virtual directory doesn't like page inheritance I have taken my form in my Secure folder and made a... -
Karl Seguin #2
Re: Page inheritance
The HTML isn't part of the class. Why don't you simply create a user
control and Page.LoadControl it (or Register it), if I understand what you
are trying to do, this is how you should do it.
Karl
"Mircea Pleteriu" <mpleteriu@asp-gmbh.de> wrote in message
news:OXhw7PfSDHA.1916@TK2MSFTNGP12.phx.gbl...page> I have created an aspx page called Page1. The class associated with the> in code behind is abstract.
> Now I want to create another aspx page call Page2 that inherits the Page1.
>
> It seems like the Page2 inherits the code behind defined by Page1 but it
> does not inherits the html content (the controls) of the Page1.
> So, I do not have the controls on my new page.
>
> Can somebody tell me where I am wrong?
>
>
>
Karl Seguin Guest
-
Natty Gur #3
Re: Page inheritance
Hi,
If you don’t care about the visualization of HTML controls in design
mode you can add them dynamically in your base class (onload) and they
will be create in derived classes (webforms)
Natty Gur, CTO
Dao2Com Ltd.
28th Baruch Hirsch st. Bnei-Brak
Israel , 51114
Phone Numbers:
Office: +972-(0)3-5786668
Fax: +972-(0)3-5703475
Mobile: +972-(0)58-888377
Know the overall picture
*** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
Don't just participate in USENET...get rewarded for it!
Natty Gur Guest



Reply With Quote

