DataListDesigner.GetTemplateContent Methode

Definitie

Let op

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

Hiermee haalt u de inhoud van de sjabloon op.

public:
 override System::String ^ GetTemplateContent(System::Web::UI::Design::ITemplateEditingFrame ^ editingFrame, System::String ^ templateName, [Runtime::InteropServices::Out] bool % allowEditing);
public override string GetTemplateContent(System.Web.UI.Design.ITemplateEditingFrame editingFrame, string templateName, out bool allowEditing);
[System.Obsolete("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 override string GetTemplateContent(System.Web.UI.Design.ITemplateEditingFrame editingFrame, string templateName, out bool allowEditing);
override this.GetTemplateContent : System.Web.UI.Design.ITemplateEditingFrame * string * bool -> string
[<System.Obsolete("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")>]
override this.GetTemplateContent : System.Web.UI.Design.ITemplateEditingFrame * string * bool -> string
Public Overrides Function GetTemplateContent (editingFrame As ITemplateEditingFrame, templateName As String, ByRef allowEditing As Boolean) As String

Parameters

editingFrame
ITemplateEditingFrame

Het ITemplateEditingFrame exemplaar van waaruit de inhoud moet worden opgehaald.

templateName
String

De naam van de sjabloon.

allowEditing
Boolean

true als de inhoud van de sjabloon kan worden bewerkt; false als de inhoud het kenmerk Alleen-lezen heeft.

Retouren

De inhoud van de sjabloon.

Kenmerken

Opmerkingen

In plaats van frames te bewerken, gebruikt u sjabloongroepen en ontwerpregio's. Zie voor meer informatie TemplateGroups en DesignerRegion.

Van toepassing op

Zie ook