<%@ Page Title="" Language="C#" MasterPageFile="~/Portal/default.Master" AutoEventWireup="true" CodeBehind="VoteResult.aspx.cs" Inherits="Portal.Portal.VoteResult" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

<div>
    
    
       
    
    
    
  <style  type="text/css">
    
   .pollbar
{
   background-color: red;
  height:20px;
}

.results{
 background-color: blue; height:20px;
}
    </style>
    <div style="text-align:left">
    <b><asp:Label runat="server" ID="title"></asp:Label></b> <br />
    <asp:Repeater runat="server" ID="rptOptions"  >
      <ItemTemplate>         
         <%# Eval("question") %>
         <small>(<%# Eval("ps") %> vote(s) )</small>
         <br />
         <div class="results">
         <div class="pollbar" style="width:<%# GetFixedPercentage(Eval("ps").ToString()) %>%">&nbsp;</div>
     </div>
      </ItemTemplate>
  
   </asp:Repeater>
 
 </div>
    </div>
    
    
</asp:Content>
