<%@ page autoeventwireup="true" debug="true" enableeventvalidation="false" inherits="_tbl_Topic, App_Web_y-mubyy6" language="C#" validaterequest="false" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>题库管理</title>
    <link href="../css/StyleSheet.css" rel="stylesheet" type="text/css" />
<link href="../css/GridView.css" rel="stylesheet" />
<link href="../css/main.css" rel="stylesheet" type="text/css" />
  <link href="../css/pager.css" rel="stylesheet" type="text/css" />

<script src="../My97DatePicker/WdatePicker.js" type="text/javascript"></script>
<script src="../jquery-1.5.js" type="text/javascript"></script>
<link href="../window/_css/window.css" rel="stylesheet" type="text/css" />
<script language="javascript" src="../window/message/jquery.message.js" type="text/javascript"></script>
<script language="javascript" src="../window/jquery/jquery.min.js" type="text/javascript"></script>
<script language="javascript" src="../window/jquery-ui/jquery-ui.min.js" type="text/javascript"></script>
<script language="javascript" src="../window/jquery.bgiframe.pack.js" type="text/javascript"></script>
<link href="../window/_css/jqueryui/blitzer/jquery-ui-1.8.12.custom.css" rel="stylesheet" type="text/css" />
<link href="../alert/jquery.alert.css" rel="stylesheet" type="text/css" />
<script src="../alert/jquery.easydrag.js" type="text/javascript"></script>
<script src="../alert/jquery.alert.js" type="text/javascript"></script>
<script language="javascript" type="text/javascript">   
function   isnum() 
{
if(event.keyCode <48   ||   event.keyCode> 57) 
{
event.keyCode=0;
}
}
$(function(){

$("#div_win").dialog({
autoOpen:false,
modal: false,
width:850,
height:650,
bigframe:true
});
$("#div_3").dialog({
autoOpen:false,
modal: true,
width:420,
height:120,
bigframe:true
});
$("#div_4").dialog({
autoOpen:false,
modal: true,
width:320,
height:520,
bigframe:true
});




$('#div_win').bind('dialogbeforeclose', function(event, ui) {



var t2=document.getElementById ("t_2");
var h2=document.getElementById ("h_2");

if( t2!=null)
{
t2.value="";
}
if (h2!=null)
{
h2.value="";
}
});


$("#btnAdd").click(function(page){
$("#div_win").dialog({ title: '题库管理-添加' });
$("#div_win").dialog({ draggable: true,resizable:true });
$("#IsEdit").val("0");
});
$("#btnModify").click(function(page){
$("#div_win").dialog({ title: '题库管理-修改' });
$("#div_win").dialog({ draggable: true,resizable:true });
});
});
</script>
<script language="JavaScript" type="text/JavaScript">
//-----------------------------------------------------------------------------------
$("#chk_all").click(function() {
$("input[name='chk_list']").attr("checked", $(this).attr("checked"));
});
//全选 
function CheckedAll() {
$(':checkbox').attr('checked', 'checked');
}
//全不选 
function CheckedNo() {
$(':checkbox').attr('checked', '');
var GridView1= document.getElementById("<%=GridView1.ClientID %>");
for(i = 1;i < GridView1.rows.length; i++)
{
GridView1.rows[i].style.backgroundColor='#FFFFFF';
}
}
//反选 
function CheckedRev(objCheckBox, strId) {
var NormalColor = "#fff";
 var AlterColor = "#eee";
var SelectColor = "#ffff99";
var GridView1= document.getElementById("<%=GridView1.ClientID %>");
if (objCheckBox.tagName == "INPUT" && objCheckBox.type == "checkbox") {
var allInput = document.getElementsByTagName("input");
var k=0;
for (var i = 0; i < allInput.length; i++) {
if (allInput[i].type == "checkbox" && allInput[i].id.indexOf(strId) >= 0) {
k=k+1;
if  (allInput[i].disabled==true)
{}
else
{
allInput[i].checked = !allInput[i].checked;
if   ( allInput[i].checked)
{
GridView1.rows[k].style.backgroundColor='#ffff99';
}
else
{
GridView1.rows[k].style.backgroundColor = k % 2 == 0 ? NormalColor : AlterColor;   
}
}
}
}
}
document.getElementById ("chk_all").checked=false;
}
function ChangeAllCheckStatus(objCheckBox, strId) //全选
{
var NormalColor = "#fff";
 var AlterColor = "#eee";
var SelectColor = "#ffff99";
var GridView1= document.getElementById("<%=GridView1.ClientID %>");
if (objCheckBox.tagName == "INPUT" && objCheckBox.type == "checkbox") {
var allInput = document.getElementsByTagName("input");
var k=0;
for (var i = 0; i < allInput.length; i++) {
if (allInput[i].type == "checkbox" && allInput[i].id.indexOf(strId) >= 0) {
k=k+1;
if  (allInput[i].disabled==true)
{
GridView1.rows[k].style.backgroundColor='#FFFFFF';
}
else
{
allInput[i].checked = objCheckBox.checked;
if(objCheckBox.checked)
{
GridView1.rows[k].style.backgroundColor='#ffff99';
}
else
{
GridView1.rows[k].style.backgroundColor = k % 2 == 0 ? NormalColor : AlterColor;
}
}
document.getElementById ("cb3").checked=false;
}
}
}
}
//---------------------------------------------------------------------------------------------------- 
var prevselitem=null;
function selectx(row)
{
if(prevselitem!=null)
{
prevselitem.style.backgroundColor='#ffffff';
}
row.style.backgroundColor='PeachPuff';
prevselitem=row;
}

function l_out(p,m,NormalColor,AlterColor,HoverColor,SelectColor)
{
if (m<10)
{
var ck= document.getElementById("GridView1_ctl0"+m+"_checkbox1");
}
else
{
var ck= document.getElementById("GridView1_ctl"+m+"_checkbox1");
}
p.style.background = m % 2 == 1 ? NormalColor : AlterColor; 
if (ck!=null)if (ck.checked==true)
{
p.style.backgroundColor = SelectColor;
}
else
{
p.style.backgroundColor = m % 2 == 1 ? NormalColor : AlterColor; 
}
}
function l_in(p,m,NormalColor,AlterColor,HoverColor,SelectColor)
{
if (m<10)
{
var ck= document.getElementById("GridView1_ctl0"+m+"_checkbox1");
}
else
{
var ck= document.getElementById("GridView1_ctl"+m+"_checkbox1");
}
if (ck!=null)if (ck.checked==true)
{
p.style.backgroundColor = SelectColor;
}
else
{
p.style.backgroundColor = HoverColor; 
}
}
//--------------------------------------------------------------------------------------





function choose(s1,s2)
{

var t1=document.getElementById ("t_value");
var h1=document.getElementById ("h_value");
var t1_bk=document.getElementById ("t_value_bk");
t1_bk.value=s1;

t1.value=s1;
h1.value=s2;
//---------------------------------------------
var t2=document.getElementById ("t_2");
var h2=document.getElementById ("h_2");
if (t2!=null)
{
t2.value=s1;
}
if (h2!=null)
{
h2.value=s2;
}
$('#div_4').dialog('close');

}
  function serch_clear()
  {
  var t2=document.getElementById ("t_2");
var h2=document.getElementById ("h_2");
t2.value="";
h2.value="";
  
  
  }

</script>

</head>
<body>
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server" />
<div class="title">
<asp:Label ID="lblList" runat="server" Text="题库管理"></asp:Label>
</div>


    <asp:Panel ID="btnserch" runat="server" style="display:inline ">
  
        <div  class="panel">
        
    题型：<asp:DropDownList ID="timu_type" runat="server">
    </asp:DropDownList>
    知识点：<asp:DropDownList ID="timu_chapter" runat="server" Visible="false" style="display:none " >
    </asp:DropDownList>
    <asp:TextBox ID="t_2" runat="server" ReadOnly="true"  CssClass="text1"></asp:TextBox>
    <asp:HiddenField ID="h_2" runat="server" />
    <img onclick="$('#div_4').dialog('open');$('#div_4').dialog({ title: '知识点-选择' });$('#div_4').dialog({ draggable: true,resizable:true });"
        src="../images/select.gif" style="cursor: pointer;" />
    
    <a alt='清空试卷类别' onclick="serch_clear();" style="color: Red" style="cursor: pointer;">
        清空</a>
    
  
    难度：<asp:DropDownList ID="timu_diff" runat="server">
        <asp:ListItem Text="请选择难度..." Value=""></asp:ListItem>
        <asp:ListItem Text="容易" Value="容易"></asp:ListItem>
        <asp:ListItem Text="中等" Value="中等"></asp:ListItem>
        <asp:ListItem Text="困难" Value="困难"></asp:ListItem>
    
    </asp:DropDownList>
    题目状态：<asp:DropDownList ID="timu_state" runat="server">
    <asp:ListItem  Text="请选择状态..." Value=""></asp:ListItem>
        <asp:ListItem Text="可用" Value="可用"></asp:ListItem>
        <asp:ListItem Text="作废" Value="作废"></asp:ListItem>
    </asp:DropDownList>
    题目名称：<asp:TextBox ID="timu_name" runat="server"></asp:TextBox>
    <asp:Button ID="Button3" runat="server" CssClass="button_b" OnClick="Button3_Click"
        Text="搜索" />
        </div>
    </asp:Panel>
<div id="ctl_panel" runat="server" class="panel">

<asp:Button ID="btnAdd" runat="server" CssClass="button_b" OnClick="btnAdd_Click"
    Text="添加" ToolTip="添加" />
<asp:Button ID="btnModify" runat="server" CssClass="button_b" OnClick="btnModify_Click"
    Text="修改" ToolTip="修改" />
<asp:Button ID="btnDelete" runat="server" CssClass="button_r" OnClick="LinkButton6_Click"
    Text="删除" />
    <asp:Button ID="btnview" runat="server" CssClass="button_b" OnClick="btnview_Click"
        Text="试题预览" />
    <asp:Button ID="btndown" runat="server" CssClass="button_g" OnClick="btndown_Click"
        Text="模版下载" />
    <asp:Button ID="btnout" runat="server" CssClass="button_g" OnClick="btnout_Click"
        Text="导出数据" />
    <asp:Button ID="btnin" runat="server" CssClass="button_g" OnClick="btnin_Click" Text="导入数据" />
    <asp:Panel ID="chkpanel" runat="server" style="display:inline ">


<input id="chk_all" name="chk_all" onclick="ChangeAllCheckStatus(this,'checkbox1')" type="checkbox" />全选
<input id="cb3" name="btnCheckedRev" onclick="CheckedRev(this,'checkbox1')" type="checkbox" value="反　选" />反 选

    </asp:Panel>
</div>

<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:GridView ID="GridView1"    runat="server" AllowSorting="true" OnSorting="GridView1_Sorting" AutoGenerateColumns="False" CssClass="gv" DataKeyNames="Top_id" GridLines="Horizontal" OnRowCommand="GridView1_RowCommand" Width="100%">
<RowStyle CssClass="gvRow" />
<HeaderStyle CssClass="gvHeader" />
<AlternatingRowStyle CssClass="gvAlternatingRow" />
<Columns>
<asp:TemplateField HeaderText="选">
<HeaderStyle Width="50px"  HorizontalAlign ="Center" />
<ItemStyle Width="50px" HorizontalAlign ="Center"  Wrap="false"  />
<ItemTemplate>
<asp:CheckBox ID="checkbox1" runat="server" />
<asp:HiddenField ID="Top_id" runat="server" Value='<%# Eval("Top_id") %>' />
</ItemTemplate>
</asp:TemplateField>

<asp:TemplateField HeaderText ="序号">
<ItemTemplate>
<%# Container.DataItemIndex + 1+(int.Parse (page_indexpage.Text)-1)*20 %>

</ItemTemplate>
</asp:TemplateField>
<asp:BoundField  SortExpression="Topic_no"   DataField="Topic_no" HeaderText="题目编号" ItemStyle-HorizontalAlign="Center" >
</asp:BoundField>
<asp:BoundField DataField="Typ_name" HeaderText="题目类型" ItemStyle-HorizontalAlign="Center"
    SortExpression="Typ_name" />
<asp:BoundField DataField="K_Name" HeaderText="章节" ItemStyle-HorizontalAlign="Center"
    SortExpression="K_Name" />


<asp:TemplateField HeaderText="题目" SortExpression="Top_Theme">

<ItemTemplate>
    <asp:Label ID="Label1" runat="server"></asp:Label>

</ItemTemplate>
</asp:TemplateField>

<%--<asp:BoundField  SortExpression="Top_Theme"   DataField="Top_Theme"  HeaderText="题目" ItemStyle-HorizontalAlign="Center" >
</asp:BoundField>--%>


<asp:BoundField  SortExpression="Top_Diffculty"   DataField="Top_Diffculty" HeaderText="难度" ItemStyle-HorizontalAlign="Center" >
</asp:BoundField>
<asp:BoundField SortExpression="Top_score"   DataField="Top_score" HeaderText="参考分值" ItemStyle-HorizontalAlign="Center" >
</asp:BoundField>
<asp:BoundField  SortExpression="Top_state"   DataField="Top_state" HeaderText="状态" ItemStyle-HorizontalAlign="Center" >
</asp:BoundField>
<%--<asp:BoundField  SortExpression="Top_answer"   DataField="Top_answer" HeaderText="问答题答案" ItemStyle-HorizontalAlign="Center" >
</asp:BoundField>
<asp:BoundField  SortExpression="Top_tbl_name"   DataField="Top_tbl_name" HeaderText="答案表表名" ItemStyle-HorizontalAlign="Center" >
</asp:BoundField>--%>
</Columns>
</asp:GridView>
<asp:Panel ID="Panel1" runat="server" Visible="false" Width="100%">
<div class="paginator">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="left">
<webdiyer:aspnetpager id="PagerButtom" runat="server" alwaysshow="True" bordercolor="Aqua"
cssclass="paginator" custominfoclass="" custominfohtml="当前第%CurrentPageIndex%/%PageCount%页 共%RecordCount%条记录 每页%PageSize%条 "
custominfosectionwidth="" firstpagetext="首页" horizontalalign="Right" lastpagetext="尾页"
layouttype="Table" morebuttonsclass="" nextpagetext="下一页" numericbuttoncount="10"
onpagechanged="Pager_PageChanged" pageindexboxclass="cpb" pagesize="20" prevpagetext="上一页"
showcustominfosection="Right" showpageindexbox="Always">
</webdiyer:aspnetpager>
</td>
</tr>
</table>
</div>
</asp:Panel>
<asp:HiddenField ID="IsEdit" runat="server" />
<asp:HiddenField ID="modify" runat="server" />
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="btnModify" />
<asp:AsyncPostBackTrigger ControlID="btnDelete" />

</Triggers>
</asp:UpdatePanel>
<div id="div_win" style="display: none">
<iframe frameborder="0" src="about:blank" style="position: absolute; z-index: -1; width: 100%; height: 100%; top: 0; left: 0;"></iframe>
<asp:UpdatePanel ID="UpdatePanel2" UpdateMode="Conditional" ChildrenAsTriggers="false"   runat="server">
<ContentTemplate>

    <asp:Label ID="Label2" Visible="false"  runat="server" Text="Label"></asp:Label>
<table border="0" cellpadding="0" cellspacing="0" class="table" width="100%">

<tr>
<td align="right" class="line" style="width: 100px">
    题目编号：</td>
<td align="left" class="line" >
    <asp:TextBox ID="Topic_no" runat="server" Width="158"></asp:TextBox>
</td>
<td align="right" class="line">
知识点：
</td>
<td align="left" class="line" >
    <asp:DropDownList ID="Top_Cha_id" runat="server" Width="163" Visible="false" style="display:none">
    </asp:DropDownList>
 <asp:TextBox ID="t_value" runat="server" CssClass="text1" ReadOnly="true" Text=""></asp:TextBox>
   
    <asp:HiddenField ID="t_value_bk" runat="server" />
    <asp:HiddenField ID="h_value" runat="server" Value="0" />
   
    

  <img style="cursor:pointer ;" onclick="$('#div_4').dialog('open');$('#div_4').dialog({ title: '知识点-选择' });$('#div_4').dialog({ draggable: true,resizable:true });"
      src="../images/select.gif"/>
      
      </td>
<td align="right" class="line">
参考分值：
</td>
<td align="left" class="line">
    <asp:TextBox ID="Top_score" runat="server" onkeyup="value=value.replace(/[^\d]/g,'')"
        Width="158"></asp:TextBox>
</td>

</tr>

<tr>
<td align="right" >
题目类型：
</td>
<td align="left">
<%--<asp:TextBox ID="Topic_type" runat="server" Width="158"></asp:TextBox>--%>
    <asp:DropDownList ID="Topic_type"  runat="server" Width="163" OnSelectedIndexChanged="Topic_type_SelectedIndexChanged" AutoPostBack="True">
    </asp:DropDownList>
</td>
<td align="right">
难度：
</td>
<td align="left">
    <asp:DropDownList ID="Top_Diffculty" runat="server" Width="163">
        <asp:ListItem Text="容易" Value="容易"></asp:ListItem>
        <asp:ListItem Text="中等" Value="中等"></asp:ListItem>
        <asp:ListItem Text="困难" Value="困难"></asp:ListItem>
    </asp:DropDownList>
</td>
<td align="right">
状态：
</td>
<td align="left">
    <asp:DropDownList ID="Top_state" runat="server" Width="163">
        <asp:ListItem Text="可用" Value="可用"></asp:ListItem>
        <asp:ListItem Text="作废" Value="作废"></asp:ListItem>
    </asp:DropDownList>
</td>
</tr>


<tr>

<td align="right" class="line">
试题题目：
</td>
<td align="left" class="line" colspan="5">
    <asp:TextBox ID="Top_Theme" runat="server" Width="158" Visible="false"  style="display:none " ></asp:TextBox>
    <FCKeditorV2:FCKeditor ID="FCKeditor1" runat="server" Height="280px" ToolbarSet="Custom"
        Width="100%">
    </FCKeditorV2:FCKeditor>
    <asp:Label ID="Label5" runat="server" Text=""></asp:Label>
     
</td>

</tr>
<tr>

<td colspan="6" align="left" >
<div id="div1"  runat="server"  visible="false" >

<table border="0" cellpadding="0" cellspacing="0" class="table" width="100%">
    <tr>
   
        <td align="right" class="line" style="width: 100px">
            选项内容：
        </td>
        <td align="left" class="line">
            <asp:TextBox ID="Top_tbl_name" Visible="false"  runat="server" Width="158" style="display:none "></asp:TextBox>
            <FCKeditorV2:FCKeditor ID="FCKeditor2" runat="server" Height="280px" ToolbarSet="Custom"
                Width="100%">
            </FCKeditorV2:FCKeditor>
            <asp:Label ID="Label6" runat="server" Text="Label"></asp:Label>
           
        </td>
    </tr>
    <tr>
    <td align="right">
    选项个数
    </td>
    <td align="left">
        <asp:DropDownList ID="xuan_num"  runat="server" Width="163"  >
        <asp:ListItem Text="1"  Value="1"></asp:ListItem>
            <asp:ListItem Text="2" Value="2"></asp:ListItem>
            <asp:ListItem Text="3" Value="3"></asp:ListItem>
            <asp:ListItem Text="4" Value="4"></asp:ListItem>
            <asp:ListItem Text="5" Value="5"></asp:ListItem>
            <asp:ListItem Text="6" Value="6"></asp:ListItem>
            <asp:ListItem Text="7" Value="7"></asp:ListItem>
            <asp:ListItem Text="8" Value="8"></asp:ListItem>
            <asp:ListItem Text="9" Value="9"></asp:ListItem>
            <asp:ListItem Text="10" Value="10"></asp:ListItem>
            <asp:ListItem Text="11" Value="11"></asp:ListItem>
            <asp:ListItem Text="12" Value="12"></asp:ListItem>
            <asp:ListItem Text="13" Value="13"></asp:ListItem>
            <asp:ListItem Text="14" Value="14"></asp:ListItem>
        
        
        </asp:DropDownList>
    </td>
    </tr>
    <tr>
        <td align="right" class="line">
           试题答案
        </td>
        <td align="left" class="line">
          
            <asp:CheckBoxList ID="CheckBoxList1" runat="server" RepeatColumns="9" style="display:inline ">
               <asp:ListItem Text="(A)" Value="1"></asp:ListItem>
                <asp:ListItem Text="(B)" Value="2"></asp:ListItem>
                <asp:ListItem Text="(C)" Value="3"></asp:ListItem>
                <asp:ListItem Text="(D)" Value="4"></asp:ListItem>
                <asp:ListItem Text="(E)" Value="5"></asp:ListItem>
                <asp:ListItem Text="(F)" Value="6"></asp:ListItem>
                <asp:ListItem Text="(G)" Value="7"></asp:ListItem>
                <asp:ListItem Text="(H)" Value="8"></asp:ListItem>
                <asp:ListItem Text="(I)" Value="9"></asp:ListItem>
            </asp:CheckBoxList>
            
        </td>
    </tr>
</table>

</div>

<div id="div2" runat="server" visible="false"  >
  
    <table border="0" cellpadding="0" cellspacing="0" class="table" width="100%">
        <tr>
            <td align="right" class="line" style="width: 100px">
              试题答案：
            </td>
            <td align="left" class="line">
                <asp:TextBox ID="Top_answer" Visible="false"   runat="server" Rows="5" TextMode="MultiLine" Width="158" style="display :none "></asp:TextBox>
                <FCKeditorV2:FCKeditor ID="FCKeditor3" runat="server" Height="280px" ToolbarSet="Custom"
                    Width="100%">
                </FCKeditorV2:FCKeditor>
                 
                <asp:Label ID="Label4" runat="server" Text=""></asp:Label>
            </td>
        </tr>
        <tr>
        <td align="right" >
        关键词()
        </td>
        <td align="left" >
            
            <asp:TextBox ID="TextBox1" runat="server" BorderColor="PaleTurquoise" BorderStyle="Dashed" Height="50px" Rows="9" TextMode="MultiLine" Width="100%"></asp:TextBox>
            
            <asp:Label ID="Label3" runat="server" Text=""></asp:Label>
           
        </td>
        
        
        </tr>
        
        
    </table>
</div>


</td>
</tr>






</table>
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="btnAdd" EventName="click" />
<asp:AsyncPostBackTrigger ControlID="Button1" EventName="Click" />
    <asp:AsyncPostBackTrigger ControlID="Topic_type"  />
    <asp:AsyncPostBackTrigger ControlID="btnModify" />
    <asp:AsyncPostBackTrigger ControlID="Button3"/>
  
    
    
    
    </Triggers>
</asp:UpdatePanel>
<div class="panel" style="padding-left: 130px; width: 84%">
<asp:Button ID="Button1" runat="server" CssClass="button_r_b" OnClick="LinkButton1_Click"
    Text="确 定" />
<asp:Button ID="Button2" runat="server" CssClass="button_g" OnClick="LinkButton2_Click"
    Text="取 消" />
</div>
</div>

    
<div id="div_3" style="display:none">
<iframe frameborder="0" src="about:blank" style="position: absolute; z-index: -1;
    width: 100%; height: 100%; top: 0; left: 0;"></iframe>
    
    
     
    
    <table cellpadding="0" class="table" cellspacing="0" border="0">
    <tr>
    <td align="right"  style=" padding-left :50px;">
    
    选择文件
    </td>
    <td align="left " >
        <asp:FileUpload ID="FileUpload1" CssClass="btn" runat="server" />
        
        
    </td>
    
    
    
    </tr>
    <tr>
    <td align="right" class="line">
    
    </td>
    <td align="left"  class="line">
    
        <asp:Button ID="Button4" runat="server" Text="导入试题" CssClass="btn" OnClick="Button4_Click" />
    </td>
    </tr>
    
    </table>
    <asp:UpdatePanel ID="UpdatePanel3" runat="server" UpdateMode="Conditional">
        <ContentTemplate>
     </ContentTemplate>
        <Triggers>
          
           <asp:AsyncPostBackTrigger ControlID ="btnin" />
            
            </Triggers>
    </asp:UpdatePanel>
</div>



    <div id="div_4" style="display: none">
        <iframe frameborder="0" src="about:blank" style="position: absolute; z-index: -1;
            width: 100%; height: 100%; top: 0; left: 0;"></iframe>
        <asp:TreeView ID="TreeView1" runat="server" CollapseImageUrl="~/images/folder.gif"
            ExpandImageUrl="~/images/folder-closed.gif" NoExpandImageUrl="~/images/file.gif" 
            >
        </asp:TreeView>
       
    </div> 

</form>
<asp:Label ID="lb_pageid" runat="server" Text="" Visible="false"></asp:Label>
<asp:Label ID="recordcount" runat="server" Visible="false"></asp:Label>
<asp:Label ID="page_indexpage" runat="server" Text="1" Visible="false"></asp:Label>
<asp:Label ID="page_count" runat="server" Text="0" Visible="false"></asp:Label>
<asp:Label ID="l2" runat="server" ></asp:Label>
</body>
</html>
