This topic provides a description of the public controls of the Polls module available in Page Edit mode:

Figure 1
Poll Box
Description
This is the Polls public control. It displays one poll.
Figure 2 shows what the PollBox control displays after added to a page. The control is bound to an already created poll item. For more on poll items creation and
manipulation, see Polls Overview

Figure 2
Figure 3 shows the result displayed after choosing the first answer and clicking the Vote button:

Figure 3
Setting the Public Controls
Following are some basic settings that need to be made to work with the Poll Box control:
- Data section: PollId should contain the ID of the poll item to be displayed. Use the Select button to choose which item to bind to the control
- Behavior section: Visible should be True
- General section: ResultsBox could be edited by clicking the Edit button and setting the given properties
- Misc section: ThankYouMessage could be set to the message displayed after the user has voted
- Misc section: ShowResults should be True if the results should be displayed right after each voting
- Paging section: AllowPaging to True
- Security section: IPBlocking to True if a user should not be allowed from one and the same computer more than
once
- Text section: TotalVotersText should be set to the text which will display the number of votes accepted so far
- Text section: ButtonText should be set to the text of the button used to enter the vote
Figure 3 illustrates the available sections for the Properties of BlogPosts:

Figure 3
See Also