DataPager.TagKey Property


Gets the HTML element that is used to render the DataPager control.

 virtual property System::Web::UI::HtmlTextWriterTag TagKey { System::Web::UI::HtmlTextWriterTag get(); };
protected virtual System.Web.UI.HtmlTextWriterTag TagKey { get; }
member this.TagKey : System.Web.UI.HtmlTextWriterTag
Protected Overridable ReadOnly Property TagKey As HtmlTextWriterTag

Property Value



The TagKey property returns an HTML element that is used by the RenderBeginTag method to write the appropriate markup for the DataPager control. This property overrides the base implementation to always return HtmlTextWriterTag.Span.


This property is primarily used by control developers to extend the DataPager control.

Notes to Inheritors

You can override this property to specify which HtmlTextWriterTag value to use for a derived control.

Applies to

See also