473,466 Members | 1,405 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

sharing code (includes and controls)

Joe
While I understand that Server Side Includes still work, I realize it's
not the best practice for sharing code such as a common set of includes
between screens.

In ASP.NET I've already built several User Controls and such for sharing
code between screens, but this typically was used things such as menus
and headers and footers.

What is the best practice in 1.1 for sharing code such as a common set
of functions used by multiple screens?

Can you create a control with a REGISTER declaration but not include
it's custom "tag" in the page, or just not have it outputting anything
in order to bring in some code? Are there any inheritance concerns? It
seems to me there should be a way to set the page to inherit some other
classes? How do you reference them? Do you need to compile them and add
them to an assembly or can they be referenced as files?

Thanks,

Joe
Mar 1 '06 #1
1 1496
> What is the best practice in 1.1 for sharing code such as a common set of
functions used by multiple screens?
Classes.
Can you create a control with a REGISTER declaration but not include it's
custom "tag" in the page, or just not have it outputting anything in order
to bring in some code? Are there any inheritance concerns?
Huh?
It seems to me there should be a way to set the page to inherit some other
classes?
A Page is a class. A class in .Net can inherit exactly 1 class. I get the
feeling this is not what you're asking here, but I am unable to discern what
it is.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
A brute awe as you,
a Metallic hag entity, eat us.
"Joe" <Jo*@nospam.com> wrote in message
news:uk**************@TK2MSFTNGP09.phx.gbl... While I understand that Server Side Includes still work, I realize it's
not the best practice for sharing code such as a common set of includes
between screens.

In ASP.NET I've already built several User Controls and such for sharing
code between screens, but this typically was used things such as menus and
headers and footers.

What is the best practice in 1.1 for sharing code such as a common set of
functions used by multiple screens?

Can you create a control with a REGISTER declaration but not include it's
custom "tag" in the page, or just not have it outputting anything in order
to bring in some code? Are there any inheritance concerns? It seems to me
there should be a way to set the page to inherit some other classes? How
do you reference them? Do you need to compile them and add them to an
assembly or can they be referenced as files?

Thanks,

Joe

Mar 1 '06 #2

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

Similar topics

3
by: Robert W. | last post by:
I'm embarking on a project that will have both a desktop application and a Pocket PC application. It seems logical to have as much code as possible sitting in a shared project, which would be...
3
by: Shikari Shambu | last post by:
Hi All, I have a situation where multiple applications are sharing some pages/ controls. So, I have a separate common project that has the common pages/ controls. My question is how do I...
2
by: Ajeet YS | last post by:
Hello, We need to share the same user controls among many developers in the same project. How do we achieve this? We have looked into using Custom controls, but they have a very high development...
17
by: tshad | last post by:
Many (if not most) have said that code-behind is best if working in teams - which does seem logical. How do you deal with the flow of the work? I have someone who is good at designing, but...
2
by: Carlo \(MCP only\) | last post by:
Hi to all I'm askyng you a suggestion about the best way to share the same source code between VS2003 and VS2005. The project I'm developing is a controls and components library, and the...
5
by: Gregory Gadow | last post by:
All done in ASP.Net 2.0 using VB... The website I am developing has a large DLL that includes custom MembershipUser, MembershipProvider and RoleProvider classes, several frequently used web...
3
by: =?Utf-8?B?U2FjaGluIFNha2k=?= | last post by:
Hi, Our application have asp and .aspx pages, we need to redirect user from asp page to .aspx page and vice-versa and want to share session state b/w asp and asp.net. This could be achieved by...
4
by: Mike P2 | last post by:
Hi. I'm writing controls that have to query the database, and it bothers me that I might have several of these controls on a page that each create, open, and close their own connection with the...
8
by: Nathan Sokalski | last post by:
I have a form that contains a number of fields, all of which have validators. There are two submit buttons, one to update a record and one to add a record. Because the only difference in validation...
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,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.