<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Users_Import_Data.aspx.cs" Inherits="Dotnet.Admin.Users_Import_Data" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
 
      <link href="../bootstrap/css/bootstrap.min.css" rel="stylesheet" />     
     <script src="../Javascript/jquery-1.9.1.min.js"></script>
    <script src="../bootstrap/js/bootstrap.min.js"></script> 
</head>
<body style=" margin:10px;  text-align:center">
    <form id="form1" runat="server">


         
         <asp:HiddenField runat="server" ID="hf_tablename" />

   <b>          <asp:Label runat="server" ID="lbl_title"></asp:Label></b>

        <br /> 

（1）Excel里，新用户密码为空则系统会设置为123456   <br /> （2）Excel里，老用户密码为空则表示其密码不变。&nbsp;&nbsp;&nbsp;&nbsp;


    <div> 

        选择Excel文件(.xlsx格式)：<asp:FileUpload ID="FileUpload1"  CssClass="form-control" runat="server" />
        <br /> 
        *请先导出一份Excel列表作为模板，然后导入 <br /><br /> 
        <asp:CheckBox runat="server" ID="cb_del" Text="导入时，清空所有数据" /> 建议在初始化时，勾选此选项。 <br /><br /> 
    </div>

        <div id="div1">
        <asp:Button ID="Button1" ClientIDMode="Static"
            
            CssClass="btn btn-success" 
             runat="server" OnClick="Button1_Click" OnClientClick="setthis();" Text="导入数据" />
    </div>

   <div id="div2" style="display:none">
     <asp:Button ID="Button2" ClientIDMode="Static"  CssClass="btn btn-default" 
          runat="server" Text="数据导入中..." Enabled="false" />
       </div>
    
    <script>

        function setthis()
        {
            $("#div1").hide();
            $("#div2").show();
          
        }


    </script>
    
    </form>
</body>
</html>
