.NETGURU
MasterPages or Web Visual Inheritance (ASP.Net 1.1)?
Messages   Related Types
This message was discovered on microsoft.public.dotnet.framework.aspnet.

Post a new message to this list...

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

Reply to this message...
 
    
Curt_C [MVP]
Are you trying this in 2.0 or in 1.0/1.1 ?
If 2.0 you need the MASTER= in the page
If 1.0/1.1 you aren't going to get the same functionality

--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com

"VR" <Click here to reveal e-mail address> wrote in message
news:%Click here to reveal e-mail address...
[Original message clipped]

Reply to this message...
 
    
VR
As in the subject of this message, ASP.Net 1.1.

The problem is not getting the same functionality (I know these are two
different approaches), I want to know if I could face problems with this
approach (WebForms Visual Inheritance). Let's say I asked myself "since
Framework 1.0 there is Visual Inheritance for WinForms, why did not MS say
you can do the same with WebForms, is there any problem I'm missing?"

Regards,
Victor Reboucas

"Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
news:Click here to reveal e-mail address...
[Original message clipped]

Reply to this message...
 
    
Curt_C [MVP]
Visual Inheritance is not there for forms in WebForms at this point. You can
get it with controls and you can work around it at code time but I do not
believe you can get design time visual inheritance in VS2002/3.

--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com

"VR" <Click here to reveal e-mail address> wrote in message
news:Click here to reveal e-mail address...
[Original message clipped]

Reply to this message...
 
 
System.Web.UI.Page




ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
Ad


Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification