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

📄 default.aspx

📁 将sql数据库中所有的表读出
💻 ASPX
字号:
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Default3" Title="Untitled Page" %>
<%-- 在此处添加内容控件 --%>
<asp:Content ID="Content1" runat="server" ContentPlaceHolderID="ContentPlaceHolder1">
    <div style="text-align: center">
        <table style="width: 442px; height: 164px">
            <tr>
                <td style="width: 111px; height: 160px;">
                    <asp:Button ID="Button1" runat="server" Text="显示msater数据库中所有表" Width="210px" OnClick="Button1_Click" />
                    <asp:DropDownList ID="DropDownList1" runat="server" Width="210px" AutoPostBack="True" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged">
                    </asp:DropDownList>
                    <asp:Label ID="Label1" runat="server" Width="206px" Font-Size="11pt"></asp:Label>
                    <asp:GridView ID="GridView1" runat="server" BorderColor="White" BorderStyle="None"
                        Font-Names="@黑体" Font-Size="16pt" Height="134px" OnSelectedIndexChanged="GridView1_SelectedIndexChanged"
                        Width="206px" ShowHeader="False">
                        <PagerTemplate>
                            <h1>
                                &nbsp;</h1>
                        </PagerTemplate>
                        <AlternatingRowStyle BackColor="Transparent" />
                    </asp:GridView>
                </td>
                <td style="width: 100px; height: 160px;">
                    <asp:Label ID="Label2" runat="server" Text="Label2" Width="212px" Font-Bold="True" Font-Size="12pt" Height="26px"></asp:Label>
                    <asp:CheckBoxList ID="CheckBoxList1" runat="server" OnSelectedIndexChanged="CheckBoxList1_SelectedIndexChanged" Width="212px" Font-Size="11pt">
                    </asp:CheckBoxList>
                    <asp:Button ID="Button3" runat="server" OnClick="Button3_Click" Text="选择字段" Width="210px" />
                    <asp:Label ID="Label3" runat="server" Font-Bold="True" Text="您选择的字段是:" Width="174px"></asp:Label><br />
                    <asp:GridView ID="GridView2" runat="server" Font-Size="12pt" Height="84px" ShowHeader="False" Width="198px">
                    </asp:GridView>
                    <asp:Button ID="Button2" runat="server" Text="将相应的字段数据导入xml" Width="214px" OnClick="Button2_Click" Height="28px" /></td>
            </tr>
        </table>
    </div>
</asp:Content>

⌨️ 快捷键说明

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