<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="Vote_Data.aspx.cs" Inherits="Vote.Admin.Vote_Data" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

    

 <div class="result-wrap">


 
    


        
 <div class="result-wrap">
    <asp:DropDownList runat="server" ID="ddl_votesubject" AutoPostBack="True"
         CssClass="form-control"
         OnSelectedIndexChanged="ddl_votesubject_SelectedIndexChanged"></asp:DropDownList>



            <div class="result-content">
                <ul class="sys-info-list">
                    <li>
                        目前投票个数：<asp:Label runat="server" id="lbl_total"  ForeColor="Red" Font-Bold="true"></asp:Label>个
                   已经参与投票人数 ：<asp:Label runat="server" id="lbl_people" ForeColor="Red" Font-Bold="true"></asp:Label>人
                        (因为一人可能投多个票数，所以，投票数始终大于投票人数)
                         </li>

                    </ul>
                </div>
     <hr />
     <b>投票明细</b>


     <asp:SqlDataSource ID="SqlDataSource1" 
         SelectCommand="select * from vote_votingdetail where sid=@sid order by id desc "
          ConnectionString='<%$ConnectionStrings:ConnectionString %>'
          runat="server">

         <SelectParameters>
             <asp:ControlParameter ControlID="ddl_votesubject" Name="sid" />
         </SelectParameters>
     </asp:SqlDataSource>

     <asp:GridView ID="GridView1" AllowPaging="true" PageSize="100"
         
          CssClass="table" GridLines="None" DataSourceID="SqlDataSource1" runat="server">

        
     </asp:GridView>
     </div>
     </div>
</asp:Content>
