<%@ Page Language="C#" MasterPageFile="~/SPage.Master" AutoEventWireup="true" CodeBehind="vote.aspx.cs" Inherits="LoveWeb.Vote.vote" %>

<asp:Content ID="content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

    <div align="left">
    
        <table>
            <tr bgcolor="#FFFFCC">
                <td align="center" bgcolor="#FFFF99" class="style4" height="30px">生活需要一颗感恩的心来创造，一颗感恩的心需要生活来滋养。</td>
            </tr>
            <tr>
                <td >
                    
                    <asp:DataList ID="DataList1" runat="server" 
                        DataSourceID="ObjectDataSource1" style="margin-right: 551px" Width="100%" 
                        BackColor="#FFFFCC">
                        <ItemTemplate>
                            <table cellspacing="0" >
                                <tr>
                                    <td class="lift">
                                        <asp:Label ID="QuesidLabel" runat="server" Text='<%# Eval("Quesid") %>' />
                                        、&nbsp;<asp:Label ID="QuestionLabel" runat="server" Text='<%# Eval("Question") %>' />
                                        <br />
                                        <asp:RadioButtonList ID="RadioButtonList1" runat="server" 
                                            DataSourceID="ObjectDataSource2" DataTextField="Answername" 
                                            DataValueField="Answerid">
                                        </asp:RadioButtonList>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                                            ControlToValidate="RadioButtonList1" ErrorMessage="未选择"></asp:RequiredFieldValidator>
                                        <asp:ObjectDataSource ID="ObjectDataSource2" runat="server" 
                                            SelectMethod="GetAnAll" TypeName="LoveBLL.VoteManager">
                                            <SelectParameters>
                                                <asp:ControlParameter ControlID="QuesidLabel" Name="quesid" PropertyName="Text" 
                                                    Type="Int32" />
                                            </SelectParameters>
                                        </asp:ObjectDataSource>
                                    </td>
                                </tr>
                            </table>
                            <br />
                            <br />
                        </ItemTemplate>
                    </asp:DataList>
                    
                    <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
                        SelectMethod="GetQestAll" TypeName="LoveBLL.VoteManager">
                    </asp:ObjectDataSource>
                    
                    
                    
                    
                    </td>
            </tr>
            <tr>
                <td style="text-align: center">
                    <asp:Button ID="Button1" runat="server" Text=" 提 交 " onclick="Button1_Click" />
                </td>
            </tr>
        </table>
    
    </div>
</asp:Content>
<asp:Content ID="content2" ContentPlaceHolderID="head" runat="server">
    <link href="css/Vote.css" rel="stylesheet" type="text/css" />
    <style>
     .style1
        {
            width: 100%;
            height: 240px;
            
        }
.msgfont span { line-height: 150%; }

        .style2
        {
            width: 100%;
        }
        
    
        .style4
        {
            font-size: large;
            font-weight: bold;
            font-family: 华文楷体;
        }
        
    
    </style>
</asp:Content>