Edit

Share via


HtmlTextWriter.RegisterTag(String, HtmlTextWriterTag) Method

Definition

Registers markup tags, whether literals or dynamically generated, from the source file so that they can be properly rendered to the requesting client.

protected:
 static void RegisterTag(System::String ^ name, System::Web::UI::HtmlTextWriterTag key);
protected static void RegisterTag (string name, System.Web.UI.HtmlTextWriterTag key);
static member RegisterTag : string * System.Web.UI.HtmlTextWriterTag -> unit
Protected Shared Sub RegisterTag (name As String, key As HtmlTextWriterTag)

Parameters

name
String

A string that contains the HTML tag.

key
HtmlTextWriterTag

An HtmlTextWriterTag that specifies which element to render.

Remarks

The predefined markup tags of the HTML language are registered by calls to the RegisterTag method when the first HtmlTextWriter object is created. Dynamic markup tags can be registered by using the RegisterTag method at other times.

The registration table used by the RegisterTag method is static, so registration of tags applies to all HtmlTextWriter objects on the host computer.

Applies to

See also