<CSHub:SectionMembershipList />
List control providing access to SectionMembership 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
<QueryOverrides>...</QueryOverrides>
Overrides from the default implicit query
| Property/Attribute |
Type |
Description |
| ID |
String |
Gets or sets the programmatic ID of the control. This ID can be used as a reference by other controls.
|
| MembershipType |
SectionMembershipType Enumeration |
Gets or sets the type of SectionMemberhips that should be retrieved.
| Option |
Type |
Description |
| None |
Enumeration Value |
|
| Owner |
Enumeration Value |
|
| Manager |
Enumeration Value |
|
| Member |
Enumeration Value |
|
| PendingMember |
Enumeration Value |
|
|
| PageIndex |
Integer |
Gets or sets the index of the page of objects to display. This value is overridden when a PagerID is specified.
|
| Pager |
IPager |
Gets or sets the IPager control used to control the current PageIndex.
|
| PagerID |
String |
Gets or sets the ID of the IPager control to use to control the current PageIndex.
Any Pager control can be referenced. See a list of Pager controls.
|
| PageSize |
Integer |
Gets or sets the number of objects to show on a single page.
|
| QueryType |
SectionMembershipQueryType Enumeration |
Gets or sets the type of this query; the generic location/relationship from which data will be retrieved.
| Option |
Type |
Description |
| Context |
Enumeration Value |
Uses the current context and query overrides to retrieve section memberhips.
|
| SectionMembers |
Enumeration Value |
Uses the current section and query overrides to retrieve section memberships.
|
| CurrentUserMembership |
Enumeration Value |
Uses the current user and query overrides to retrieve section memberships.
|
| AccessingUserMembership |
Enumeration Value |
Uses the accessing user and query overrides to retrieve section memberships.
|
|
| SectionApplicationKey |
String |
Gets or sets the application key of the section for which SectionMemberships should be retrieved.
|
| SectionApplicationType |
ApplicationType Enumeration |
Gets or sets the type of the application.
| Option |
Type |
Description |
| Forum |
Enumeration Value |
|
| Weblog |
Enumeration Value |
|
| Gallery |
Enumeration Value |
|
| GuestBook |
Enumeration Value |
|
| Calendar |
Enumeration Value |
|
| ContentManagement |
Enumeration Value |
|
| FileGallery |
Enumeration Value |
|
| FeedReader |
Enumeration Value |
|
| BlogRoller |
Enumeration Value |
|
| Ads |
Enumeration Value |
|
| Spam |
Enumeration Value |
|
| Hub |
Enumeration Value |
|
| Reporting |
Enumeration Value |
|
| MediaGallery |
Enumeration Value |
|
| Rest |
Enumeration Value |
|
| MyKB |
Enumeration Value |
|
| Wiki |
Enumeration Value |
|
| Newsletter |
Enumeration Value |
|
| Games |
Enumeration Value |
|
| Store |
Enumeration Value |
|
| Installer |
Enumeration Value |
|
| Admin |
Enumeration Value |
|
| Unknown |
Enumeration Value |
|
| All |
Enumeration Value |
|
|
| SectionID |
Integer |
Gets or sets the ID of the section for which SectionMemberships should be retrieved.
|
| SortBy |
SectionMembershipSortBy Enumeration |
Gets or sets the sorting method.
| Option |
Type |
Description |
| SectionSortOrder |
Enumeration Value |
|
| SectionName |
Enumeration Value |
|
| UserJoinedDate |
Enumeration Value |
|
| Username |
Enumeration Value |
|
| UserLastActiveDate |
Enumeration Value |
|
| UserPosts |
Enumeration Value |
|
| UserEmail |
Enumeration Value |
|
| MembershipType |
Enumeration Value |
|
| MembershipDate |
Enumeration Value |
|
|
| SortOrder |
SortOrder Enumeration |
Gets or sets the sort order.
| Option |
Type |
Description |
| Ascending |
Enumeration Value |
|
| Descending |
Enumeration Value |
|
|
| UserID |
Integer |
Gets or sets the ID of the user for which SectionMemberships should be retrieved.
|
| UserName |
String |
Gets or sets the name of the user for which SectionMemberships should be retrieved.
|
| Visible |
Boolean |
Gets or sets whether this control should be rendered. If set to false, the control will not render.
|
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 <CSHub:SectionMembershipList /> control:
<CSHub:SectionMembershipList runat="server" />
The following example shows all of the configurable options of the <CSHub:SectionMembershipList /> control:
<CSHub:SectionMembershipList
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>
<QueryOverrides
ID="..."
MembershipType="..."
PageIndex="..."
PagerID="..."
PageSize="..."
QueryType="..."
SectionApplicationKey="..."
SectionApplicationType="..."
SectionID="..."
SortBy="..."
SortOrder="..."
UserID="..."
UserName="..."
Visible="..."
/>
<RowSeparatorTemplate>
...
</RowSeparatorTemplate>
<SeparatorTemplate>
...
</SeparatorTemplate>
<TrailerTemplate>
...
</TrailerTemplate>
</CSHub:SectionMembershipList>
See Also
Single value control that provides access to SectionMembership data.
List control providing access to SectionMembership objects.
Condition control that provides support for comparing two properties of a SectionMembership object.
Condition control that provides support for comparing a property of a SectionMembership object to a static value.
Form control implementing support for accepting/rejecting a membership request for a public Hub.
Form control implementing support for adding a user to a Hub.
Form control implementing support for removing a member of a Hub.
Form control implementing support for editing a member of a Hub.
Single value control that provides access to SectionMembership data.
List control providing access to SectionMembership objects.
Condition control that provides support for comparing two properties of a SectionMembership object.
Condition control that provides support for comparing a property of a SectionMembership object to a static value.