⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 console_tablestructuredataview.aspx

📁 一个真正的CMS系统,可以完全实现建站自动化,用.NET开发.
💻 ASPX
字号:
<%@ Page Language="C#" Inherits="SiteServer.BackgroundPages.ConsoleTableStructureDataView" %>
<%@ Register TagPrefix="bairong" Namespace="BaiRong.Controls" Assembly="BaiRong.Controls" %>
<html>
<head>
<!--#include file="../inc/html_head.inc"-->
<script language="javascript" src="../Inc/toggle.js"></script>
<meta http-equiv="content-type" content="text/html;charset=gb2312">
</head>
<body>
<form id="myForm" runat="server">
  <table cellpadding="3" width="95%" align="center">
    <tr>
      <td align="center"><asp:Label id="myLabel" width="100%" Style="text-align:center" runat="server"/></td>
    </tr>
  </table>
  <table cellpadding="3" width="95%" align="center">
    <tr>
      <td align="left"><ASP:DataGrid id="MyDataGrid" runat="server"
			Width="100%"
			Align="center"
			ShowHeader="true"
			ShowFooter="false"
			AllowPaging="true"
			CellPadding="0"
			AutoGenerateColumns="false"
			OnPageIndexChanged="MyDataGrid_Page"
			OnItemDataBound="MyDataGrid_ItemBound"
			HeaderStyle-CssClass="summary-title"
			ItemStyle-CssClass="tdbg"
			CellSpacing="0" >
          <HeaderStyle HorizontalAlign="center" Font-Bold="true" Height="25" />  
          <ItemStyle Height="25"/>  
          <PagerStyle Visible="false" Mode="NumericPages" PageButtonCount="10" HorizontalAlign="Right" />  
      </ASP:DataGrid>
          <table width="600" align="left" style="<%=GetPageStyle()%>">
            <tr>
              <td align="right"><table width="100%" height="25" cellpadding="0" cellspacing="0">
                  <tr>
                    <td><asp:LinkButton ID="pageFirst" OnClick="NavigationButtonClick" CommandName="FIRST" Runat="server">首页</asp:LinkButton>
                      |
                      <asp:LinkButton ID="pagePrevious" OnClick="NavigationButtonClick" CommandName="PREVIOUS" Runat="server">前页</asp:LinkButton>
                      |
                      <asp:LinkButton ID="pageNext" OnClick="NavigationButtonClick" CommandName="NEXT" Runat="server">后页</asp:LinkButton>
                      |
                      <asp:LinkButton ID="pageLast" OnClick="NavigationButtonClick" CommandName="LAST" Runat="server">尾页</asp:LinkButton>                    </td>
                    <td align="right"> 分页
                      <asp:Label Enabled=False Runat=server ID="currentPage" />                    </td>
                  </tr>
              </table></td>
            </tr>
        </table></td>
    </tr>
  </table>
  <table cellpadding="3" width="95%" align="center">

    <tr  style="BACKGROUND-POSITION:center 50%; BACKGROUND-IMAGE:url(../pic/line.gif); BACKGROUND-REPEAT:repeat-x">
      <td colspan="2" height="5"></td>
    </tr>
    <tr>
      <td width="150" align="right"><bairong:help HelpText="需要执行的数据库查询字符串,此字符串将对数据库进行查询操作,必须以“SELECT”字符串作为开头。" Text="数据库查询字符串:" runat="server" ></bairong:help></td>
      <td align="left" valign="middle"><asp:TextBox Columns="80" Rows="6" id="SqlQuery" TextMode="MultiLine" runat="server" />  
          <asp:RequiredFieldValidator ControlToValidate="SqlQuery" ErrorMessage="*" Display="Dynamic" runat="server" />    
          <br>
          <asp:Button ID="Submit" Text="查 询" OnClick="Submit_OnClick" runat="server" /></td>
    </tr>
  </table>
</form>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -