HtmlTextWriter.PopEndTag Method

Removes the most recently saved markup element from the list of rendered elements.

Namespace: System.Web.UI
Assembly: System.Web (in system.web.dll)

protected:
String^ PopEndTag ()
protected String PopEndTag ()
protected function PopEndTag () : String
Not applicable.

Return Value

A String containing the most recently rendered markup element.

Exception typeCondition

InvalidOperationException

The list of rendered elements is empty.

Elements are added to the list of rendered markup elements by the RenderBeginTag method. The RenderEndTag method removes markup elements from the list by calling the PopEndTag method.

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0

Community Additions

ADD
Show: