Which interface should you implement?

You create a Microsoft ASP.NET application by using the Microsoft .NET Framework
version 3.5.You create a custom-templated server control.You need to ensure that the child
controls of the server control are uniquely identified within the control hierarchy of the page.
Which interface should you implement?

You create a Microsoft ASP.NET application by using the Microsoft .NET Framework
version 3.5.You create a custom-templated server control.You need to ensure that the child
controls of the server control are uniquely identified within the control hierarchy of the page.
Which interface should you implement?

A.
the ITemplatable interface

B.
the INamingContainer interface

C.
the IRequiresSessionState interface

D.
the IPostBackDataHandler interface

Explanation:
The naming container for a given child control is a control above it (parent or higher) in the hierarchy
that implements the INamingContainer interface. A server control implements this interface to create a unique namespace
for populationg the UniqueID property values of its child server controls. The UniqueID property contains the fully qualified name
of the control. The difference between this property and the ID property is that the UniqueID property
is generated automatically by the NamingCOntainer and the contains the NamingContainer information.
MCTS Self-Paced Training Kit (Exam 70-562): Microsoft.Net Framework 3.5-ASP.Net Application Development (pg. 67)



Leave a Reply 0

Your email address will not be published. Required fields are marked *