Compartilhar via


DataListDesigner.SetTemplateContent Método

Definição

Cuidado

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

Define o conteúdo para o modelo e quadro especificados.

public:
 override void SetTemplateContent(System::Web::UI::Design::ITemplateEditingFrame ^ editingFrame, System::String ^ templateName, System::String ^ templateContent);
public override void SetTemplateContent (System.Web.UI.Design.ITemplateEditingFrame editingFrame, string templateName, string templateContent);
[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 void SetTemplateContent (System.Web.UI.Design.ITemplateEditingFrame editingFrame, string templateName, string templateContent);
override this.SetTemplateContent : System.Web.UI.Design.ITemplateEditingFrame * string * string -> unit
[<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.SetTemplateContent : System.Web.UI.Design.ITemplateEditingFrame * string * string -> unit
Public Overrides Sub SetTemplateContent (editingFrame As ITemplateEditingFrame, templateName As String, templateContent As String)

Parâmetros

editingFrame
ITemplateEditingFrame

A instância ITemplateEditingFrame para a qual definir o conteúdo.

templateName
String

O nome do modelo.

templateContent
String

O novo conteúdo para o modelo.

Atributos

Comentários

Em vez de usar verbos de edição, use grupos de modelos e regiões de edição de designer. Para obter mais informações, consulte TemplateGroups e DesignerRegion.

Aplica-se a

Confira também