DetailsView.TagKey 属性

定义

获取 HtmlTextWriterTag 控件的 DetailsView 值。Gets the HtmlTextWriterTag value for the DetailsView control.

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

属性值

如果 EnablePagingCallbackstrue,则此属性返回 DivIf EnablePagingCallbacks is true, this property returns Div. 否则,它将返回 TableOtherwise, it returns Table.

注解

属性允许输出流为DetailsView控件写入适当的 HTML 标记。 TagKeyThe TagKey property allows the output stream to write the appropriate HTML markup for the DetailsView control.

继承者说明

可以重写此属性, 以指定HtmlTextWriterTag要用于派生控件的值。You can override this property to specify which HtmlTextWriterTag value to use for your derived control.

适用于