| |||||
FormView.EmptyDataTemplate PropertySystem.Web.UI.WebControls Namespace FormView Class .NET Framework version 2.0 Specifies the template to use for an empty data row when the data source bound to a FormView control returns empty, or contains no data. Syntax<asp:formview ... >
<itemtemplate>
... template definition here
</itemtemplate>
</asp:formview>
Property ValueAn ITemplate interface that defines how an empty data row in the FormView control is rendered. The property is read/write with no default value. RemarksThe empty data row is displayed in a FormView control when the data source that is bound to the control does not contain any records. To specify a template for the empty data row, declare an <EmptyDataTemplate> element between the opening and closing tags of the control. You can then list the contents of the template between the opening and closing To control the style of the empty data row, use the EmptyDataRowStyle property. Alternatively, you can use the built-in UI for the empty data row by setting the EmptyDataText property instead of this property.
ExampleThe following example illustrates using the EmptyDataTemplate when the data source bound to a FormView control returns empty, or contains no data. See AlsoFormView Members EditItemTemplate EmptyDataRowStyle HeaderTemplate FooterTemplate PagerTemplate |
| ||||
Check out related books at Amazon
© 2000-2008 Rey Nuñez All rights reserved.
If you have any question, comment or suggestion
about this site, please send us a note
You can help support aspxtreme