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

Marker Interfaces

I was wondering how the INamingContainer interface works when you are not
required to implement any methods to perform the work. My understanding of
interfaces is that they are a contract and you implement the logic yourself,
following the interface's contract. What confuses me is how does this
INamingContainer work when you don't implement any logic. In an example I am
looking at which prompted this Q, I see that this interface is being used to
give all child controls a uniqueID, but nowhere in the code do I see any
implementation that is actually performing this logic. What is happening
under the covers and how does this work???

Thanks in advance,
Chris
Nov 16 '05 #1
2 1854
On Wed, 15 Dec 2004 08:55:03 -0800, Chris Fink wrote:
I was wondering how the INamingContainer interface works when you are not
required to implement any methods to perform the work. My understanding of
interfaces is that they are a contract and you implement the logic yourself,
following the interface's contract. What confuses me is how does this
INamingContainer work when you don't implement any logic. In an example I am
looking at which prompted this Q, I see that this interface is being used to
give all child controls a uniqueID, but nowhere in the code do I see any
implementation that is actually performing this logic. What is happening
under the covers and how does this work???


INamingContainer is a marker interface. You don't need to actually code
any functionality to use it. As ASP.NET page framework will create a new
naming scope for your control if you implement the INamingContiner
interface, ensuring that the child controls have unique names.
--
Tom Porterfield
Nov 16 '05 #2
I recommend the "C# Class Design Handbook" from WROX.
--
<%= Clinton Gallagher, "Twice the Results -- Half the Cost"
Architectural & e-Business Consulting -- Software Development
NET cs*********@REMOVETHISTEXTmetromilwaukee.com
URL http://www.metromilwaukee.com/clintongallagher/
"Chris Fink" <Ch*******@discussions.microsoft.com> wrote in message
news:2D**********************************@microsof t.com...
I was wondering how the INamingContainer interface works when you are not
required to implement any methods to perform the work. My understanding of interfaces is that they are a contract and you implement the logic yourself, following the interface's contract. What confuses me is how does this
INamingContainer work when you don't implement any logic. In an example I am looking at which prompted this Q, I see that this interface is being used to give all child controls a uniqueID, but nowhere in the code do I see any
implementation that is actually performing this logic. What is happening
under the covers and how does this work???

Thanks in advance,
Chris

Nov 16 '05 #3

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

Similar topics

5
by: Martin Trautmann | last post by:
Hi all, is there any standard for grip markers? I've found the fo:marker, but I look for some kind of support for "grip marker" or "side makers" - what's the correct English / XSL term to look...
25
by: Haines Brown | last post by:
I have a table with three columns, and I want the data in the first column to align left, while that in the remaining columns to align right: #testTable { text-align: right; } #leftcol {...
3
by: KNE | last post by:
I'm writing some code that is formating an output file being generated within a web app. I want to allow the site administrator to configure the characters that will mark the end of each...
5
by: Eran Kampf | last post by:
I was wondering why MS defined "marker" interfaces (empty interfaces) in the ..NET framework(interfaces such as such as INamingContainer, IRequiresSessionState etc...). Why not use attributes? ...
1
by: Wannabe_Geek | last post by:
Do we have something in ASP.net like freemarker for java.(freemarker.sourceforge.net) The idea is to use simple HTML file as template for the site and replace the Marker tags with appropriate...
1
by: Uri Dimant | last post by:
Hi,friends I meant Flag on text editor. It allows you to move from flag to flag only within one class/module. If you put another flag within different module/class in the same project then it...
0
by: geniet | last post by:
Hello all of you, I am looking for a program where I can add and edit the APP3 marker according to jps format (if needed Python/PIL can be used). The setup of the APP3 marker comes from this...
1
by: =?Utf-8?B?QmVu?= | last post by:
Hi all, I'm a little bit consfused as to when to use each of these options. For example, if i want to decorate a class with some information, I could decalre a const or read only field and have...
2
by: flymo | last post by:
Hello All, Hopefully this is the correct forum... I have some code that creates a text (dat) for a billing process created in Access2000, I add an Eof of Line marker to each line item and then...
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: 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
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
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...

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.