473,379 Members | 1,243 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,379 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 2317
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: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.