ASP.NET 3.5 and above only

Poll - Results - Fill With Empty Space


Fill With Empty Space


Favorite Movie
What is your favorite movie?
  • The Shawshank Redemption (2023 votes)
    21.21%
  • The Godfather (2225 votes)
    23.33%
  • Star Wars (2781 votes)
    29.16%
  • Schindler's List (1276 votes)
    13.38%
  • Pulp Fiction (1231 votes)
    12.91%
Use the ResultStyle.FillWithEmptySpace property to indicate whether the results should be filled with empty space.
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">
    <ResultStyle DisplayVotes="true" />
</obout:Poll>
CS
protected void Page_load(object sender, EventArgs e)
{
Poll1.ResultStyle.FillWithEmptySpace = OboutCheckBox1.Checked;
}

"Obout ASP.net components are really the BEST!!! I really like them all."

Alain Melsens

Random testimonial   All testimonials