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
    19%
  • The Godfather
    24.68%
  • Star Wars
    29.77%
  • Schindler's List
    13.37%
  • Pulp Fiction
    13.18%
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 your quick response. I have really enjoyed developing with your product. So far it seems easy to use and it really adds style to my projects. "

Troy Patton

Random testimonial   All testimonials