473,320 Members | 1,829 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,320 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 1004
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: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work

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.