HtmlTextWriter.RegisterTag(String, HtmlTextWriterTag) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
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.