<CSForum:ForumPostPropertyValueComparison />
Condition control that provides support for comparing a property of a ForumPost object to a static value.
Properties/Attributes
| Property |
Type |
Description |
| ComparisonProperty |
String |
Gets or sets the left value comparison property name.
| Option |
Type |
Description |
| ApplicationType |
ApplicationType Enumeration |
|
| AttachmentFilename |
String |
|
| Body |
String |
Returns the body of the post.
|
| EditNotes |
String |
|
| EmoticonID |
Integer |
|
| Excerpt |
String |
Short description of post
|
| ExtendedAttributesCount |
Integer |
|
| ForceExcerpt |
String |
Returns the Excerpt if available or creates one from the FormattedBody
|
| FormattedBody |
String |
Returns a pre-formatted version of the body of the post.
|
| ForumPostType |
ForumPostType Enumeration |
|
| IndexInThread |
Integer |
|
| InkID |
Integer |
|
| Name |
String |
Name of the post.
|
| ParentID |
Integer |
Specifies the thread's parent ID. (That is, the PostID of the replied-to post.)
|
| Points |
Integer |
Total number of points for a given post
|
| PollDescription |
String |
|
| PollExpirationDate |
Date/Time |
|
| PollTitle |
String |
|
| PostConfiguration |
PostConfiguration Enumeration |
Acts as a bag for different post attributes values.
This should not be used directly. It's scope is to be used by
other properties as mask to determine if their values are set.
|
| PostDate |
Date/Time |
Specifies the date/time the post was made, relative to the database's timezone.
|
| PostID |
Integer |
Specifies the ID of the Post, the unique identifier.
|
| PostLevel |
Integer |
Specifies the level of the post.
|
| PostMedia |
PostMediaType Enumeration |
|
| PostStatus |
PostStatus Enumeration |
|
| PostType |
PostContentType Enumeration |
|
| RatingAverage |
Double Precision Decimal |
|
| RatingSum |
Integer |
|
| Replies |
Integer |
Specifies how many replies have been made to this post.
|
| SectionID |
Integer |
Specifies the ID of the Section the post belongs to.
|
| SortOrder |
Integer |
Specifies the SortOrder of the posts.
|
| SpamScore |
Integer |
|
| SpamStatus |
SpamStatus Enumeration |
|
| Subject |
String |
Returns the subject of the post.
|
| ThreadDate |
Date/Time |
Specifies the date/time of the most recent post in the thread, relative to the database's
time zone.
|
| ThreadID |
Integer |
Indicates what thread the Post belongs to.
|
| ThreadIDNext |
Integer |
Indicates what thread the Post belongs to.
|
| ThreadIDPrev |
Integer |
Indicates what thread the Post belongs to.
|
| ThreadStartDate |
Date/Time |
The date at thread starter post has been published.
|
| ThreadStarterUsername |
String |
The user name that started the thread this post belongs to.
|
| TotalRatings |
Integer |
|
| UserHostAddress |
String |
|
| UserID |
Integer |
|
| Username |
String |
Returns the Username of the user who made the post.
|
| UserTime |
Date/Time |
Timezone refactored date. Converts date of post to the local time of the user
|
| VideoContentType |
String |
|
| VideoDuration |
String |
|
| VideoFileFormat |
String |
|
| VideoHeight |
Integer |
|
| VideoImageUrl |
String |
|
| VideoUrl |
String |
|
| VideoWidth |
Integer |
|
| Views |
Integer |
Total number of views for a given post
|
|
| ComparisonValue |
String |
Gets or sets the right value comparison value. When ComparisonProperty is a DateTime property, "now" and "today" are supported as comparison values in addition to static values.
|
| ComparisonValueAdjustment |
Integer |
Gets or sets the comparison value adjustment.
|
| ComparisonValueAdjustmentUnit |
ValueAdjustmentUnit Enumeration |
Gets or sets the comparison value adjustment unit.
| Option |
Type |
Description |
| Minute |
Enumeration Value |
Minute. Supported when comparing against DateTime properties.
|
| Hour |
Enumeration Value |
Hour. Supported when comparing against DateTime properties.
|
| Day |
Enumeration Value |
Day. Supported when comparing against DateTime properties.
|
| Month |
Enumeration Value |
Month. Supported when comparing against DateTime properties.
|
| Year |
Enumeration Value |
Year. Supported when comparing against DateTime properties.
|
| Default |
Enumeration Value |
Default.
|
|
| DataSource |
Object |
Gets or sets the data source from which the comparison property value will be retrieved.
|
| ID |
String |
Gets or sets the programmatic ID of the control. This ID can be used as a reference by other controls.
|
| Operator |
ComparisonConditionOperator Enumeration |
Gets or sets the operator used to compare the left and right values.
| Option |
Type |
Description |
| LessThan |
Enumeration Value |
The left value is less than the right value.
|
| GreaterThan |
Enumeration Value |
The left value is greater than the right value.
|
| LessThanOrEqualTo |
Enumeration Value |
The left value is less than or equal to the right value.
|
| GreaterThanOrEqualTo |
Enumeration Value |
The left value is greater than or equal to the right value.
|
| EqualTo |
Enumeration Value |
The left value is equal to the right value.
|
| StartsWith |
Enumeration Value |
The left value starts with the right value.
|
| EndsWith |
Enumeration Value |
The left value ends with the right value.
|
| Contains |
Enumeration Value |
The left value contains the right value.
|
| IsSetOrTrue |
Enumeration Value |
The left value is not null or set (non-null and non-default) or true.
|
| ContainsVisibleHtml |
Enumeration Value |
The left value contains visible HTML or text.
|
| None |
Enumeration Value |
Operator is not selected.
|
|
| Visible |
Boolean |
Gets or sets whether this control should be rendered. If set to false, the control will not render.
|
Example
The following is a simple/minimal example of the <CSForum:ForumPostPropertyValueComparison /> control:
<CSForum:ForumPostPropertyValueComparison ComparisonProperty="..." Operator="..." ComparisonValue="..." runat="server" />
The following example shows all of the configurable options of the <CSForum:ForumPostPropertyValueComparison /> control:
<CSForum:ForumPostPropertyValueComparison
ComparisonProperty="..."
ComparisonValue="..."
ComparisonValueAdjustment="..."
ComparisonValueAdjustmentUnit="..."
ID="..."
Operator="..."
Visible="..."
runat="server" />
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.