<%@ Page Title="" Language="C#" MasterPageFile="Step.Master" AutoEventWireup="true" CodeBehind="step3.aspx.cs" Inherits="Survery.admin.step3" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

     
 <table >
 <tr>
 <td  valign="top"  style=" width:200px; height:1000px; color:#ffffff; background-image:url(images/wrap_bg.jpg)">


<div class="side_bar">
		 
			 <ul>
				<li >使用说明</li>
				<li>定义标题</li>
				<li>定义选项</li>
				<li class="currentitem">生成页面</li>
				<li >预览页面</li>
			</ul>
 
 </td>

<td valign="top">

<div style=" margin-left:50px; margin-top:20px;">





<b>生成说明：</b>
下面列出了将要生成的调研页面选项,单击“下一步”继续

<br /><br /> 
<div style=" text-align:right;  width:100%">

    <asp:LinkButton ID="LinkButton2" onclick="Button1_Click"  runat="server">下一步</asp:LinkButton>

</div>
 
  <asp:GridView runat="server" ID="gv_options"   Font-Bold=true    AutoGenerateColumns="false" GridLines="None" Width="400px"   DataSourceID="SqlDataSource2">
  
  
  <Columns>
  
 
       <asp:TemplateField HeaderText="页面的选项" ShowHeader="False">
              <ItemTemplate>
              
            
        <asp:Label runat="server" ID="lblid" Text=<%#Eval("id") %>   Font-Bold="true" />
         
           <asp:LinkButton ID="LinkButton1" runat="server"  Font-Bold="true"  
          CommandArgument='<%#Eval("autoid") %>' Text=<%#Eval("subject") %>>
  </asp:LinkButton>
  
   
  
   <div style=" margin-left:10px">
  <asp:GridView runat="server"  Font-Bold=false GridLines="None"    ID="gv_item" Font-Size="12px"  ShowHeader="false" AutoGenerateColumns="false"  BorderWidth=0   DataSourceID="SqlDataSource3"   >
  <Columns>
  
  
       <asp:TemplateField HeaderText="Check" ShowHeader="False">
              <ItemTemplate>
             <asp:Label runat="server" Text='<%#Eval("itemid") %>' Visible="false"  ID="cb_items"></asp:Label>
                <%#Eval("item") %>
              </ItemTemplate>
              </asp:TemplateField>
              
              
              
  </Columns>
  </asp:GridView>
  </div>
  
  
  
   <asp:SqlDataSource ID="SqlDataSource3" runat="server" 
            ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
            SelectCommand="select * from Survery_options where id=@id and activeid=@activeid "  >
         <SelectParameters>
            <asp:ControlParameter Type="Int32" ControlID="lblid" Name="id" />
            <asp:QueryStringParameter Name="activeid" Type="Int32" QueryStringField="activeid" />
         </SelectParameters>    
         
        </asp:SqlDataSource>
              </ItemTemplate>
         </asp:TemplateField>
              
   </Columns>
  
  
  </asp:GridView>
  
  
  
  
  
  
    <asp:SqlDataSource ID="SqlDataSource2" runat="server" 
            ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
           SelectCommand="SELECT *  FROM Survery_subjects where activeid=@activeid" >
            <SelectParameters>
             <asp:QueryStringParameter Name="activeid" Type="Int32" QueryStringField="activeid" />
           </SelectParameters>
   </asp:SqlDataSource>
 


 



</div>

</td>

 </tr>
 
 

 
 </table>
 
 
</asp:Content>
