<%@ Page Title="数据库管理" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="DB_Mgr.aspx.cs" Inherits="Vote.Admin.DB_Mgr" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<div class="result-wrap">


利用本页，您可以通过SQL对数据库进行各种操作。点击<a href="http://www.w3school.com.cn/sql/" target="_blank">SQL教程</a> 学习。
本功能会对正式数据库进行操作，请慎用.<br /><br />

      <table width="100%">
      <tr valign="top">
      <td width="150px" class="dbName"  >

      <style>
      .dbName select{ line-height:30px; font-size:11px;  padding:5px;}
      .dbName select>option{  display:block; margin-top:10px; }
      </style>
      <asp:ListBox runat="server" SelectionMode="Single" 
      
       ID="lb_lists" Width="190px" Height="520px" AutoPostBack="True"    
              onselectedindexchanged="lb_lists_SelectedIndexChanged">
      
      
      </asp:ListBox>
      
      </td>
      
      <td>
      SQL:<asp:TextBox runat="server" ID="txt_sql" TextMode="MultiLine" Width="550" Height="30"></asp:TextBox>
      <asp:Button runat="server" ID="btn_exe" Text="执行SQL" onclick="btn_exe_Click" />

      &nbsp;  &nbsp;
      <a href="http://www.dotnetcms.org/" target="_blank" onclick="alert('请到启明星官网下载中心下载');">数据库定期备份小工具</a>
      
       
    <asp:GridView ID="GridView1" runat="server" AllowPaging="True" Width="100%"  
     Font-Size="12px"
              PageSize="10" AutoGenerateColumns="true" 
              onpageindexchanging="GridView1_PageIndexChanging" onrowdeleting="GridView1_RowDeleting"
           >
        <Columns> 
       
        </Columns>

       <HeaderStyle BackColor="#000000" Height="35" ForeColor="#ffffff" Font-Bold="True" HorizontalAlign="Center" />
       <AlternatingRowStyle BackColor="#F2F2F2" />
      <RowStyle BackColor="#ffffff"  Height="28"/>
      <PagerSettings Mode="NumericFirstLast" />  

    </asp:GridView>


      </td>
      </tr>
      </table>
   
   </div>


</asp:Content>
