ASP.NET 3.5 and above only

Poll - Results - Display Vote Count


Display Vote Count


Favorite Movie
What is your favorite movie?
  • The Shawshank Redemption (2019 votes)
    21.21%
  • The Godfather (2221 votes)
    23.33%
  • Star Wars (2778 votes)
    29.18%
  • Schindler's List (1274 votes)
    13.38%
  • Pulp Fiction (1229 votes)
    12.91%
Use the ResultStyle.DisplayVotes property to indicate whether the total number of votes for an answer should be displayed in the Results mode.
ASP.NET
<%@ Register Assembly="Obout.Ajax.UI" Namespace="Obout.Ajax.UI.Poll" TagPrefix="obout" %>
<obout:Poll runat="server" ID="Poll1" DataSourceID="SqlDataSource1" 
     Title="Favorite Movie" Question="What is your favorite movie?"
     AllowedVotesPerUser="100" VotingMode="SingleAnswer" CurrentMode="Results">
</obout:Poll>
CS
protected void Page_load(object sender, EventArgs e)
{
Poll1.ResultStyle.DisplayVotes = OboutCheckBox1.Checked;
}

"You guys have the best controls around."

Neal Miller
Miller Systems, Inc.

Random testimonial   All testimonials