<CSBlog:ArchiveDataItemList />
List control providing access to ArchiveDataItem objects.
Properties/Attributes
| Property |
Type |
Description |
| AdPlacement |
AdPlacementOptions Enumeration |
Gets or sets the option defining how to display the AdTemplate in this list.
| Option |
Type |
Description |
| PreSecond |
Enumeration Value |
Before the second item in the list.
|
| PreSecondAndLast |
Enumeration Value |
Before the second item and after the last item in the list.
|
| Seperator |
Enumeration Value |
Between each item.
|
| AlternatingSeparator |
Enumeration Value |
Between every other item.
|
| PreFooter |
Enumeration Value |
After the last item in the list.
|
| None |
Enumeration Value |
Ads should not be rendered.
|
|
| AlternateListItemCssClass |
String |
Gets or sets the alternate list item CSS class.
|
| ContainerId |
String |
The ID of the tag wrapping this control
|
| ControlIdsToHideWhenNotVisible |
String |
Gets or sets the control ids to hide when this list is not visible.
|
| CssClass |
String |
CSS class of the tag wrapping this control
|
| DataSource |
Object |
Gets or sets the data source of the control to render.
|
| HeaderCssClass |
String |
Gets or sets the header CSS class.
|
| HeaderResourceFile |
String |
Gets or sets the header resource file containing the header resource text.
|
| HeaderResourceName |
String |
Gets or sets the name of the header resource text.
|
| HeaderTag |
WrappedControlTag Enumeration |
Gets or sets the list header tag.
| Option |
Type |
Description |
| Acronym |
Enumeration Value |
|
| B |
Enumeration Value |
|
| Blockquote |
Enumeration Value |
|
| Caption |
Enumeration Value |
|
| Center |
Enumeration Value |
|
| Dd |
Enumeration Value |
|
| Div |
Enumeration Value |
|
| Dl |
Enumeration Value |
|
| Dt |
Enumeration Value |
|
| Em |
Enumeration Value |
|
| H1 |
Enumeration Value |
|
| H2 |
Enumeration Value |
|
| H3 |
Enumeration Value |
|
| H4 |
Enumeration Value |
|
| H5 |
Enumeration Value |
|
| H6 |
Enumeration Value |
|
| I |
Enumeration Value |
|
| Li |
Enumeration Value |
|
| Ol |
Enumeration Value |
|
| Ul |
Enumeration Value |
|
| P |
Enumeration Value |
|
| Small |
Enumeration Value |
|
| Span |
Enumeration Value |
|
| Strike |
Enumeration Value |
|
| Strong |
Enumeration Value |
|
| Sub |
Enumeration Value |
|
| Sup |
Enumeration Value |
|
| U |
Enumeration Value |
|
| Td |
Enumeration Value |
|
| Th |
Enumeration Value |
|
| Label |
Enumeration Value |
|
| Fieldset |
Enumeration Value |
|
| Legend |
Enumeration Value |
|
| Unknown |
Enumeration Value |
|
|
| HeaderText |
String |
Gets or sets the header text for the list.
|
| ID |
String |
Gets or sets the programmatic ID of the control. This ID can be used as a reference by other controls.
|
| ItemsPerRow |
Integer |
Gets or sets the items per row. After this number of items, the RowSeparatorTemplate will be rendered. If 0, the RowSeparatorTemplate will not be rendered.
|
| ListCssClass |
String |
Gets or sets the list CSS class.
|
| ListItemCssClass |
String |
Gets or sets the list item CSS class.
|
| ShowHeaderFooterOnNone |
Boolean |
Gets or sets a value indicating whether to show the HeaderTemplate and TrailerTemplate when no items are bound to this list.
|
| Tag |
WrappedControlTag Enumeration |
The WrappedControlTag of the tag wrapping this control
| Option |
Type |
Description |
| Acronym |
Enumeration Value |
|
| B |
Enumeration Value |
|
| Blockquote |
Enumeration Value |
|
| Caption |
Enumeration Value |
|
| Center |
Enumeration Value |
|
| Dd |
Enumeration Value |
|
| Div |
Enumeration Value |
|
| Dl |
Enumeration Value |
|
| Dt |
Enumeration Value |
|
| Em |
Enumeration Value |
|
| H1 |
Enumeration Value |
|
| H2 |
Enumeration Value |
|
| H3 |
Enumeration Value |
|
| H4 |
Enumeration Value |
|
| H5 |
Enumeration Value |
|
| H6 |
Enumeration Value |
|
| I |
Enumeration Value |
|
| Li |
Enumeration Value |
|
| Ol |
Enumeration Value |
|
| Ul |
Enumeration Value |
|
| P |
Enumeration Value |
|
| Small |
Enumeration Value |
|
| Span |
Enumeration Value |
|
| Strike |
Enumeration Value |
|
| Strong |
Enumeration Value |
|
| Sub |
Enumeration Value |
|
| Sup |
Enumeration Value |
|
| U |
Enumeration Value |
|
| Td |
Enumeration Value |
|
| Th |
Enumeration Value |
|
| Label |
Enumeration Value |
|
| Fieldset |
Enumeration Value |
|
| Legend |
Enumeration Value |
|
| Unknown |
Enumeration Value |
|
|
| Visible |
Boolean |
Gets or sets whether this control should be rendered. If set to false, the control will not render.
|
Inner Properties
<DisplayConditions>...</DisplayConditions>
Defines required conditions that must be met to display this control
Formatting Templates
<AdTemplate>...</AdTemplate>
The template that is used to display an advertisment
<AlternatingItemTemplate>...</AlternatingItemTemplate>
Template to be rendered for every second item in the list.
<FooterTemplate>...</FooterTemplate>
Template to be rendered after all items in the list.
<HeaderTemplate>...</HeaderTemplate>
Template to be rendered before all items in the list.
<ItemTemplate>...</ItemTemplate>
Template to be rendered for every item in the list. If an AlternatingItemTemplate is also defined, the ItemTemplate will be used for every odd-numbered item only.
<LeaderTemplate>...</LeaderTemplate>
Template to be rendered before the content of the control, if the control is rendered.
<NoneTemplate>...</NoneTemplate>
The template that is used to define what is displayed when no items are found.
<RowSeparatorTemplate>...</RowSeparatorTemplate>
The template that is used to render the separator between rows
<SeparatorTemplate>...</SeparatorTemplate>
Template to be rendered between every item in the list.
<TrailerTemplate>...</TrailerTemplate>
Template to be rendered after the content of the control, if the control is rendered.
Example
The following is a simple/minimal example of the <CSBlog:ArchiveDataItemList /> control:
<CSBlog:ArchiveDataItemList runat="server" />
The following example shows all of the configurable options of the <CSBlog:ArchiveDataItemList /> control:
<CSBlog:ArchiveDataItemList
AdPlacement="..."
AlternateListItemCssClass="..."
ContainerId="..."
ControlIdsToHideWhenNotVisible="..."
CssClass="..."
HeaderCssClass="..."
HeaderResourceFile="..."
HeaderResourceName="..."
HeaderTag="..."
HeaderText="..."
ID="..."
ItemsPerRow="..."
ListCssClass="..."
ListItemCssClass="..."
ShowHeaderFooterOnNone="..."
Tag="..."
Visible="..."
runat="server">
<AdTemplate>
...
</AdTemplate>
<AlternatingItemTemplate>
...
</AlternatingItemTemplate>
<DisplayConditions>
...
</DisplayConditions>
<FooterTemplate>
...
</FooterTemplate>
<HeaderTemplate>
...
</HeaderTemplate>
<ItemTemplate>
...
</ItemTemplate>
<LeaderTemplate>
...
</LeaderTemplate>
<NoneTemplate>
...
</NoneTemplate>
<RowSeparatorTemplate>
...
</RowSeparatorTemplate>
<SeparatorTemplate>
...
</SeparatorTemplate>
<TrailerTemplate>
...
</TrailerTemplate>
</CSBlog:ArchiveDataItemList>
See Also
Single value control that provides access to ArchiveDataItem data and links.
List control providing access to ArchiveDataItem objects.
Condition control that provides support for comparing two properties of an ArchiveDataItem object.
Condition control that provides support for comparing a property of an ArchiveDataItem object to a static value.