473,386 Members | 1,997 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,386 software developers and data experts.

Webform inheritance?

Hi

Since there is no 'WebForm inheritance', what r the ways we could create a base template webform, which the other forms could use

Thanks in advance
Benn

Nov 16 '05 #1
2 2318
I guess that depends on what you are trying to build.

In my current application, we have modified all the WebForms to inherit from
the a custom class which in turn inherits from System.Web.UI.Page.

This allowed us to nicely encapsulate a bunch of the code-behind
functionality that was common to the entire site.

-Naraen

---
"Benny" <an*******@discussions.microsoft.com> wrote in message
news:C2**********************************@microsof t.com...
Hi,

Since there is no 'WebForm inheritance', what r the ways we could create a base template webform, which the other forms could use?
Thanks in advance,
Benny

Nov 16 '05 #2
Yes, that is true. But what in the case of visual inheritance. For example, I want my derived pages to inherit a set of common controls etc. In that case, what could I do

Thanks a lot
Benn

Nov 16 '05 #3

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

Similar topics

1
by: fravelgue | last post by:
Hi, I read the microsoft article: Templates Web Form (sorry it´s spanish) http://www.microsoft.com/spanish/msdn/comunidad/mtj.net/voices/art171.asp this article explain how to have design...
0
by: Andrew | last post by:
Hi, Until now, I have used a single webform for my web app, and everything's been OK. Now, I've decided to create a main menu webform. So, I've got two webforms. Using Visual Studio .NET (with...
0
by: Bita-kookoo | last post by:
I am having a problem with inheritance for my web solution. Here are the steps I took for a project within C#: -I first created a new class, descended from System.Web.UI.Page. For this...
22
by: Matthew Louden | last post by:
I want to know why C# doesnt support multiple inheritance? But why we can inherit multiple interfaces instead? I know this is the rule, but I dont understand why. Can anyone give me some concrete...
1
by: Benny | last post by:
Hi Since there is no 'WebForm inheritance', what r the ways we could create a base template webform, which the other forms could use Thanks in advance Benn
1
by: hqdtech | last post by:
how to refresh webform from other webform I have 2 webform, i want if webform A was close then webform B wil refresh. And the problem second: how to catch packet on the network in C#. ...
1
by: fravelgue | last post by:
Hi, I read the microsoft article: Templates Web Form (sorry it´s spanish) http://www.microsoft.com/spanish/msdn/comunidad/mtj.net/voices/art171.asp this article explain how to have design...
2
by: daniel.nebel | last post by:
Dear all, when we inherit an ASP.NET webform for from a base class, and have some of the web controls defined there (the part which is usually contained within the 'web form designer generated...
0
by: Pedro Mir | last post by:
Hello! I have read inheritance in ASP.NET is possible in code files, not in web forms files. I need to create many folders but using the same webforms. How can I deploy this so I have only one...
5
by: =?Utf-8?B?UGF1bA==?= | last post by:
Hi I have start web form and when the user clicks a button (server.transfer) they are directed to the second webform. I was wondering if there is a way to create an instance of the first webform...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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$) { } ...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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.