<%@ Page Language="C#" MasterPageFile="~/Admin/MasterPage.master" AutoEventWireup="true" Inherits="Kesion.NET.WebSite.Admin_ExeSQL"  Title="在线执行SQL" Codebehind="KS.ExeSQL.aspx.cs" %>
<%@ Register TagPrefix="KS" Namespace="Kesion.Controls" Assembly="Kesion.APPCode" %>

<asp:Content ID="Content1" ContentPlaceHolderID="KSContent" Runat="Server">
     <div id="manage_top" class="toptitle menu_top_fixed">
          <ul class="titleTab">
              <li><a href="KS.DataReplace.aspx">数据库字段替换</a></li>
              <li><a href="KS.DataBack.aspx">在线备份数据库</a></li>
              <li class="curr"><a href="KS.ExeSQL.aspx">在线执行SQL语句</a></li>
              <li><a href="KS.Data.Table.aspx">查看数据库里所有数据表</a></li>
              <li><a href="KS.FieldManage.aspx">数据表字段增减</a></li>
           </ul>
    </div>
    <div class="menu_top_fixed_height"></div> 
    <div class="content-area">
          <div class="myTitle">
              在线执行SQL语句
   		</div>
        <asp:TextBox ID="SQL" runat="server" Columns="5" Rows="5" TextMode="MultiLine" Width="100%"></asp:TextBox>
        <asp:Panel ID="Panel1" runat="server" Height="25px" Width="100%" CssClass="lefttd">
            <asp:Button ID="Button1" CssClass="button button_on mt20" runat="server" Text="立即执行" OnClick="Button1_Click" />
            <font color="#ff0000">说明：一次只能执行一条SQL语句，如果您对SQL语句不了解，建议不要使用．</font>
         </asp:Panel>
         <br />
        <asp:Panel ID="listresult" runat="server" Height="372px" Width="100%" style="overflow:auto;">
        
        <asp:GridView ID="list" runat="server" CellPadding="4" ForeColor="#333333">
            <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
            <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
            <EditRowStyle BackColor="#999999" />
            <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
            <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
            <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
            <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
        </asp:GridView>
        </asp:Panel>
        
        <div ID="totalresult" runat="server"></div>
       
    </div>
</asp:Content>
