ASP.NET 3.5 and above only

Poll - Results - Height for Horizontal Lines


The height for the horizontal lines:


Favorite Movie
What is your favorite movie?
  • The Shawshank Redemption
    21.21%
  • The Godfather
    23.33%
  • Star Wars
    29.16%
  • Schindler's List
    13.38%
  • Pulp Fiction
    12.91%
Use the ResultStyle.HorizontalLinesHeight property to specify the height for the horizontal lines displaying the results for each answer.
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" StyleFile="~/App_Obout/Poll/styles/grand_gray/style.css"
     InterfaceStyleFolder="~/Interface/styles/grand_gray/OboutDropDownList">
</obout:Poll>
CS
protected void Page_load(object sender, EventArgs e)
{
Poll1.ResultStyle.HorizontalLinesHeight = Unit.Parse(OboutDropDownList1.SelectedValue);
}

"Thanks for the awesome support and incredible product!"

Andy Mason

Random testimonial   All testimonials