<%@ Page Title="" Language="C#" MasterPageFile="~/helpdesk/Survey.master" AutoEventWireup="true" CodeBehind="Survey_List.aspx.cs" Inherits="helpdesk.helpdesk.Survery_List" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">









<div class="well">
    问卷调查列表
</div>
 

<asp:GridView ID="GridView1"  CssClass="table table-hover"
     runat="server"  GridLines="None" AllowPaging="true" PageSize="20"
    AutoGenerateColumns="False" 
     DataKeyNames="id" 
    DataSourceID="SqlDataSource1"     
   
            EmptyDataText="当前没有数据"  
          >
            <Columns>
            
            
            
            <asp:BoundField DataField="id" HeaderText="调查ID"  HeaderStyle-Width="80px"  />
            <asp:BoundField DataField="username" HeaderText="调查制作者"  HeaderStyle-Width="120px"/>
 
            <asp:HyperLinkField HeaderText="调查主题" DataNavigateUrlFields="id" Target="_blank"  DataNavigateUrlFormatString="pages.aspx?activeid={0}" DataTextField="title" />     
                 
                
          
             
             
             </Columns>
           
             
            
        </asp:GridView>
 
 
 
 <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
            ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
            SelectCommand="SELECT * FROM [survery_defineactive]  order by id desc" 
  >
         
        </asp:SqlDataSource>

</asp:Content>
