473,387 Members | 1,476 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Visual inheritance

Hi,

I'm still using VB.NET 2002.
I was wondering if I could do the following :

I'm creating a web-application.
Now I want to create a base-webform that contains the layout for all my
pages.
Would it then be possible to inherite my new webforms from that
base-webform?
How would I do this?

Thanks in advance.
Nov 19 '05 #1
5 1114
It is possible to do it but both VS.NET 2002 and 2003 have lots of
problems with these. Your controls that are in the markup are not
inherited. Only the code is inherited.

Nov 19 '05 #2
So if I was to draw a table on my page it would not be inherited?
"re****@community.nospam" <ma**********@gmail.com> schreef in bericht
news:11**********************@o13g2000cwo.googlegr oups.com...
It is possible to do it but both VS.NET 2002 and 2003 have lots of
problems with these. Your controls that are in the markup are not
inherited. Only the code is inherited.

Nov 19 '05 #3
You can do inheritance and have the base class' controls work with the derived
classes' controls. There is no support in VS.NET though for visual inheritance
as there is in Windows Forms.

-Brock
DevelopMentor
http://staff.develop.com/ballen
Hi,

I'm still using VB.NET 2002.
I was wondering if I could do the following :
I'm creating a web-application.
Now I want to create a base-webform that contains the layout for all
my
pages.
Would it then be possible to inherite my new webforms from that
base-webform?
How would I do this?
Thanks in advance.


Nov 19 '05 #4
No. You inherits only the code. You have AFAIK several options here :
- you should find on the Internet some controls for doing this
- depending on the appearence you could create the common appearance by code
(and as you inherits code it works though you'll looose design time support
for this part)
- some are doing something similar by loading user controls on a "template"
page

ASP.NET 2.0 will add somthing similar to solution #1 out of the box (this is
called "master pages").

Patrice
--

"Bart Schelkens" <bs********@hotmail.com> a écrit dans le message de
news:OH**************@TK2MSFTNGP09.phx.gbl...
So if I was to draw a table on my page it would not be inherited?
"re****@community.nospam" <ma**********@gmail.com> schreef in bericht
news:11**********************@o13g2000cwo.googlegr oups.com...
It is possible to do it but both VS.NET 2002 and 2003 have lots of
problems with these. Your controls that are in the markup are not
inherited. Only the code is inherited.


Nov 19 '05 #5
In Visual Studio 2005 creating visual inheritance will be much easier.
There will
also be Master Pages that will allow all your pages to inherit a common
structure.
http://www.c-sharpcorner.com/Code/20...asterPages.asp

Until then you might want to consider simply create a header user control
and a footer user control and dragging them onto each page and the top and
bottom respectively.
http://SteveOrr.net/faq/usercustom.aspx

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
"Bart Schelkens" <bs********@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Hi,

I'm still using VB.NET 2002.
I was wondering if I could do the following :

I'm creating a web-application.
Now I want to create a base-webform that contains the layout for all my
pages.
Would it then be possible to inherite my new webforms from that
base-webform?
How would I do this?

Thanks in advance.

Nov 19 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Matt | last post by:
I have created an MDI child form that I am using as a base form in a VB.Net MDI application. The base MDI child form has a series of menu options on it. I then use this form to create other MDI...
1
by: Jason Hickey | last post by:
Has there been a change in the way the UI designer handles winform inheritance in the 2003 version of visual studio. Consider the following (try it if you are using 2003 Everything seems to work...
30
by: Elhanan | last post by:
hi all i have a question in desgning a form.. the application in question is something a indexing station. the user in this indexing station views a document in pdf/tiff format on the right...
1
by: Paul M | last post by:
Hi folks, I've got a page that contains the basic formatting that I need for pretty much all of my systems pages. It's compiled into it's DLL, distributed to my application's \bin folder and VS...
2
by: Mr Wizard | last post by:
I am going through the front controller http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnpatterns/html/ImpFrontControllerInASP.asp and all works well except when the server.transfer...
10
by: Gopal Prabhakaran | last post by:
Hi Pls Help me to do Visual Inheritance with ASP.NET -- Thanx Gopal Prabhakaran
6
by: VR | last post by:
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...
6
by: Bart Schelkens | last post by:
Hi, i've created a base-form from which all the forms in my application need to inherit. This works just fine. I've put some buttons on my base-form. They are displayed correctly, only if my...
2
by: Ray Cassick \(Home\) | last post by:
Since I got such good feedback from the Xml comments question I will ask this of the group as well. Is VS.NET 2005 handling the visual inheritance problems centered around controls and forms...
3
by: Dino Buljubasic | last post by:
Hi, I am thinking of using visual inheritance. I am using C# VS 2005. I am concerned about how good it is. I have heard about problems like controls dissapearing or so. Any hints, tips,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.