<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Vote_ViewDetail.aspx.cs" Inherits="Vote.Admin.Vote_ViewDetail" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
    <asp:GridView ID="GridView1" runat="server" AllowPaging="True" Width="100%"  PageSize="50" AutoGenerateColumns="true"
         DataKeyNames="candidateid" DataSourceID="SqlDataSource1">
        <Columns>
    
        </Columns>

           <HeaderStyle BackColor="#000000" Height="35" ForeColor="#ffffff" Font-Bold="True" HorizontalAlign="Center" />
    <AlternatingRowStyle BackColor="#F2F2F2" />
      <RowStyle BackColor="#ffffff"  Height="28"/>
    <PagerSettings Mode="NumericFirstLast" /> 


    </asp:GridView>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:connectionstring %>" 
        SelectCommand="SELECT * FROM [vote_votingdetail] WHERE ([candidateid] = @candidateid) ORDER BY [id] DESC">
        <SelectParameters>
            <asp:QueryStringParameter Name="candidateid" QueryStringField="id" Type="Int32" />
        </SelectParameters>
    </asp:SqlDataSource>


    </div>
    </form>
</body>
</html>
