V
VR
Hi, I read about Master Pages in ASP.Net 2.0 and after implementing some
WinForms Visual Inheritance I tryed it with WebForms (let's say .aspx pages,
my MasterPage does not have a form tag itself so, cannot be called a WebForm
itself, the child pages will implement forms).
I created a Master.aspx page and removed all HTML from it, added some code
to the .aspx.vb file to add controls to my page. Then I created a Child.aspx
and changed the "Inherits System.Web.UI.Page" to "Inherits MyWeb.Master" and
everything gone really fine.
Problem: all I need as HTML/Forms/Controls/Etc need to be created by code, I
cannot use the Designer to work on the page (but, let's say that's my
problem)
Question: Is there anything I'm missing here? Is that easy like it? Is there
any internal ASP.Net design considerations that would bring me problems with
this approach?
PS: I know about the MasterPage control found in www.asp.net, I do not need
an alternative for my approach, I just want to know if this kind of design
would work without problems.
Thanks,
Victor Reboucas
WinForms Visual Inheritance I tryed it with WebForms (let's say .aspx pages,
my MasterPage does not have a form tag itself so, cannot be called a WebForm
itself, the child pages will implement forms).
I created a Master.aspx page and removed all HTML from it, added some code
to the .aspx.vb file to add controls to my page. Then I created a Child.aspx
and changed the "Inherits System.Web.UI.Page" to "Inherits MyWeb.Master" and
everything gone really fine.
Problem: all I need as HTML/Forms/Controls/Etc need to be created by code, I
cannot use the Designer to work on the page (but, let's say that's my
problem)
Question: Is there anything I'm missing here? Is that easy like it? Is there
any internal ASP.Net design considerations that would bring me problems with
this approach?
PS: I know about the MasterPage control found in www.asp.net, I do not need
an alternative for my approach, I just want to know if this kind of design
would work without problems.
Thanks,
Victor Reboucas