This documentation is archived and is not being maintained.
HtmlTextWriter.RenderBeginTag Method
.NET Framework 1.1
Writes the opening tag of an HTML element to the HtmlTextWriter output stream.
Overload List
Writes the opening tag of the HTML element associated with the specified HtmlTextWriterTag enumeration value to the output stream.
[Visual Basic] Overloads Public Overridable Sub RenderBeginTag(HtmlTextWriterTag)
[C#] public virtual void RenderBeginTag(HtmlTextWriterTag);
[C++] public: virtual void RenderBeginTag(HtmlTextWriterTag);
[JScript] public function RenderBeginTag(HtmlTextWriterTag);
Writes the opening tag of the specified HTML element to the output stream.
[Visual Basic] Overloads Public Overridable Sub RenderBeginTag(String)
[C#] public virtual void RenderBeginTag(string);
[C++] public: virtual void RenderBeginTag(String*);
[JScript] public function RenderBeginTag(String);
Example
[Visual Basic, C#, C++] Note This example shows how to use one of the overloaded versions of RenderBeginTag. For other examples that might be available, see the individual overload topics.
[Visual Basic] Overloads Public Overrides Sub RenderBeginTag(tagName As String) ' Call the overloaded RenderBeginTag(HtmlTextWriterTag) method. RenderBeginTag(GetTagKey(tagName)) End Sub 'RenderBeginTag [C#] public override void RenderBeginTag(string tagName) { // Call the overloaded RenderBeginTag(HtmlTextWriterTag) // method. RenderBeginTag(GetTagKey(tagName)); } [C++] public: void RenderBeginTag(String* tagName) { // Call the overloaded RenderBeginTag(HtmlTextWriterTag) method. RenderBeginTag(GetTagKey(tagName)); }
[JScript] No example is available for JScript. To view a Visual Basic, C#, or C++ example, click the Language Filter button
in the upper-left corner of the page.
See Also
HtmlTextWriter Class | HtmlTextWriter Members | System.Web.UI Namespace
Show: