Share via


ViewEmpty Element

When no items are present in a view, the ViewEmpty element contains the string to be displayed in the view. 

Syntax

<ViewEmpty>
</ViewEmpty>
Parent Elements Child Elements
View Fields, HTML, HttpVDir, ListProperty, ListUrlDir, LocaleInfo, ScriptQuote

Example

If the view is empty, the following example returns a message indicating that the view has no items.

<ViewEmpty><![CDATA[<I>There are no items in this view.</I>]]></ViewEmpty>

See Also

ViewBody

ViewFields

ViewHeader