Click to Rate and Give Feedback

  Switch on low bandwidth view
Community Content
In this section
Statistics Annotations (0)
TemplateBasedControl Class (Microsoft.SharePoint.WebControls)
Represents a control that is defined by a template rather than by the schema of the list.

Namespace: Microsoft.SharePoint.WebControls
Assembly: Microsoft.SharePoint (in microsoft.sharepoint.dll)
Visual Basic (Declaration)
<PersistChildrenAttribute(False)> _
<ParseChildrenAttribute(True)> _
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel:=True)> _
<AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level:=AspNetHostingPermissionLevel.Minimal)> _
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel:=True)> _
<AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level:=AspNetHostingPermissionLevel.Minimal)> _
Public Class TemplateBasedControl
    Inherits SPControl
    Implements INamingContainer
Visual Basic (Usage)
Dim instance As TemplateBasedControl
C#
[PersistChildrenAttribute(false)] 
[ParseChildrenAttribute(true)] 
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel=true)] 
[AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] 
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel=true)] 
[AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)] 
public class TemplateBasedControl : SPControl, INamingContainer

Use this class (or one of its derived classes) as a base for deriving specific types of template-rendered controls. You can use an existing template that is included with Windows SharePoint Services 3.0 or create your own.

Templates are objects of type ITemplate. Typically they serve as the value of the RenderingTemplate.Template property. RenderingTemplate objects are defined in .ascx files located in the following folder:

C:\program files\common files\microsoft shared\web server extensions\12\template\controltemplates

System.Object
   System.Web.UI.Control
     Microsoft.SharePoint.WebControls.SPControl
      Microsoft.SharePoint.WebControls.TemplateBasedControl
         Derived Classes
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Template file extension      LMC2 ... Thomas Lee   |   Edit   |   Show History

Under the remarks section in this article:

"RenderingTemplate objects are defined in .aspx files located in the following folder"

This should be:

".ascx files"


Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker