TemplatedControlDesigner.GetTemplateContainerDataItemProperty Method (String)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Note: This API is now obsolete.

Gets the data item property of the template's container.

Namespace:   System.Web.UI.Design
Assembly:  System.Design (in System.Design.dll)

[ObsoleteAttribute("Use of this method is not recommended because template editing is handled in ControlDesigner. To support template editing expose template data in the TemplateGroups property and call SetViewFlags(ViewFlags.TemplateEditing, true). http://go.microsoft.com/fwlink/?linkid=14202")]
public virtual string GetTemplateContainerDataItemProperty(
	string templateName


Type: System.String

The name of the template.

Return Value

Type: System.String

A string representing the data.


The GetTemplateContainerDataItemProperty method is obsolete. Use the Templates property of the TemplateGroups collection elements to examine template metadata within a designer for template-based controls.

.NET Framework
Available since 1.1
Return to top