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 (519 votes)
    19%
  • The Godfather (674 votes)
    24.68%
  • Star Wars (813 votes)
    29.77%
  • Schindler's List (365 votes)
    13.37%
  • Pulp Fiction (360 votes)
    13.18%
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;
}

"I am writing to express my admiration of your Grid control. My firm and I reckon it as very helpful and really exceptional. Moreover, I am impressed by your individual support. The respond is very fast, which is a unique feature. "

Ivo Panov
Geryon DZZD

Random testimonial   All testimonials