<%@ Page Title="" Language="C#" MasterPageFile="~/Helpdesk/Survery.master"  AutoEventWireup="true" CodeBehind="survery_list.aspx.cs" Inherits="Voting.Admin.surverylist" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

<div id=sm>
   调查列表
</div>
 

<asp:GridView ID="GridView1" SkinID="gridviewSkin2" runat="server" AutoGenerateColumns="False" 
            DataKeyNames="id" DataSourceID="SqlDataSource1"  Width="800px"   AllowSorting="true"
            EmptyDataText="当前没有数据" onrowdatabound="GridView1_RowDataBound" 
          >
            <Columns>
            
            
            
            <asp:BoundField DataField="id" HeaderText="编号"  ItemStyle-Width="50px"  />
            <asp:BoundField DataField="username" HeaderText="调查制作者" ItemStyle-Width="100px" SortExpression="username"/>
            <asp:BoundField DataField="title" HeaderText="调查主题" SortExpression="title"  />
                 
                 
                
          
             
             
             </Columns>
             
           <HeaderStyle BackColor="#E0E0E0" Font-Bold="True" Height="30px" HorizontalAlign="Center" />
          <AlternatingRowStyle BackColor="#F2F2F2" />
          <RowStyle BackColor="#ffffff"  Height="29px"/>
     
             
            
        </asp:GridView>
 
 
 
 <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
            ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
            SelectCommand="SELECT * FROM [survery_defineactive] where ispublic=1 order by id desc" 
  >
         
        </asp:SqlDataSource>
        
</asp:Content>
