<CSForum:ForumPostAnswerToggleButton />
Implementation of the ToggleButton control that toggles the answer post status of the current ForumPost.
Properties/Attributes
| Property |
Type |
Description |
| ButtonOffCssClass |
String |
Gets or sets the button off CSS class.
|
| ButtonOnCssClass |
String |
Gets or sets the button on CSS class.
|
| ButtonProcessingCssClass |
String |
Gets or sets the button processing CSS class.
|
| ContainerId |
String |
The ID of the tag wrapping this control
|
| ControlIdsToHideWhenNotVisible |
String |
Gets or sets the control ids to hide when not visible.
|
| CssClass |
String |
CSS class of the tag wrapping this control
|
| DataSource |
Object |
Gets or sets the data source of the object to render.
|
| ID |
String |
Gets or sets the programmatic ID of the control. This ID can be used as a reference by other controls.
|
| 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
<LeaderTemplate>...</LeaderTemplate>
Template to be rendered before the content of the control, if the control is rendered.
<OffTemplate>...</OffTemplate>
Template to be rendered as the 'off' content of the control, if defined and the control is rendered.
<OnTemplate>...</OnTemplate>
Template to be rendered as the 'on' content of the control, if defined and the control is rendered.
<ProcessingTemplate>...</ProcessingTemplate>
Template to be rendered as the 'processing' content of the control, if defined and the control is rendered.
<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 <CSForum:ForumPostAnswerToggleButton /> control:
<CSForum:ForumPostAnswerToggleButton runat="server" />
The following example shows all of the configurable options of the <CSForum:ForumPostAnswerToggleButton /> control:
<CSForum:ForumPostAnswerToggleButton
ButtonOffCssClass="..."
ButtonOnCssClass="..."
ButtonProcessingCssClass="..."
ContainerId="..."
ControlIdsToHideWhenNotVisible="..."
CssClass="..."
ID="..."
Tag="..."
Visible="..."
runat="server">
<DisplayConditions>
...
</DisplayConditions>
<LeaderTemplate>
...
</LeaderTemplate>
<OffTemplate>
...
</OffTemplate>
<OnTemplate>
...
</OnTemplate>
<ProcessingTemplate>
...
</ProcessingTemplate>
<TrailerTemplate>
...
</TrailerTemplate>
</CSForum:ForumPostAnswerToggleButton>
This control exposes the following client-side JavaScript API. The methods listed below are defined on a client-side object matching the control's ClientID property.
- IsOn()
- Returns true if the toggle button is currently 'on', otherwise false.
- SetOn()
- Sets the toggle button to 'on'.
- SetOff()
- Sets the toggle button to 'off'.
- Toggle()
- Toggles the value of the toggle button from 'on' to 'off' and back.
See Also
Form control that provides support for adding/editing ForumPosts.
Form control that provides support for deleting the current ForumPost.
Implementation of the ToggleButton control that toggles the answer post status of the current ForumPost.
Single value control that provides access to ForumPost data and links.
Renders the emoticon for the current ForumPost.
List control providing access to ForumPost objects.
Form control that provides support for filtering a ForumPostList control.
Pop-up menu which renders a moderation menu used by forum moderators to moderate new posts.
Condition control that provides support for comparing two properties of a ForumPost object.
Condition control that provides support for comparing a property of a ForumPost object to a static value.
Displays the current ForumPost rating and allows the client to select a new rating that is saved via AJAX.
The single value control providing inline editing support to ForumPost tag lists.
Form control that renders a tree representing the ForumPosts within the current Thread.
SubForm control implementing support for adding an attachment to a ForumPost.
Single value control that renders a file viewer for the current PostAttachment.
Condition control that provides support for ensuring that the viewer for a PostAttachment is of a specific PostMediaType.
SubForm control implementing support for adding a poll to a ForumPost.
SubForm control implementing support for adding a video to a ForumPost.
Form control providing support for creating a abuse report.