<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Editsurvey.aspx.cs" Inherits="manage_Editsurvey" %>

<!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>
    <link href="../StyleSheet.css" rel="stylesheet" type="text/css" />
    

</head>
<body style="text-align: center">
    <form id="form1" runat="server">
    <div>
        <table style="width: 599px">
            <tr>
                <td colspan="3" style="height: 17px">
                </td>
            </tr>
            <tr>
                <td colspan="3">
                    <asp:GridView ID="DiaochaGridView" runat="server" AutoGenerateColumns="False" CellPadding="4"
                        ForeColor="#333333" GridLines="None" Width="100%" DataKeyNames="SurveyID" OnRowUpdating="DiaochaoGridView_RowUpdating" OnRowDeleting="DiaochaGridView_RowDeleting">
                        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                        <Columns>
                            <asp:BoundField DataField="Title" HeaderText="在线调查标题">
                                <ItemStyle HorizontalAlign="Left" />
                            </asp:BoundField>
                            <asp:TemplateField HeaderText="操作管理">
                                <ItemStyle Width="200px" HorizontalAlign="Left" />
                                <ItemTemplate>
                                    <a href='Inputsurvey.aspx?ShowID=<%#DataBinder.Eval(Container.DataItem,"SurveyID") %>' target="_blank">添加子项</a>
                                    <asp:Button ID="Button2" runat="server" CommandName="update" Text='<%#(bool)DataBinder.Eval(Container.DataItem,"ShowID")==true?"显示":"不显示" %>' Height="20px" />&nbsp;
                                    <asp:Button ID="delBtn" runat="server" CommandName="delete" Text="删除" Height="20px" />
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                        <RowStyle BackColor="#EFF3FB" />
                        <EditRowStyle BackColor="#2461BF" />
                        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                        <AlternatingRowStyle BackColor="White" />
                    </asp:GridView>
                </td>
            </tr>
            <tr>
                <td colspan="3" style="background-color: #99ccff; text-align: left">
                    <asp:TextBox ID="txtTitle" runat="server" Width="329px"></asp:TextBox>
                    <asp:Button ID="Button1" runat="server" Text="增加标题" OnClick="Button1_Click" /></td>
            </tr>
        </table>
    
    </div>
    </form>
</body>
</html>
