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

📄 default.aspx

📁 这是asp.net^和Visual C++Sharp编写的串并口通讯的书籍 源代码
💻 ASPX
字号:
<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table style="border-right: #9999ff thin solid; border-top: #9999ff thin solid; background-image: url(image/cd_ht_1.jpg);
            border-left: #9999ff thin solid; width: 1005px; border-bottom: #9999ff thin solid;
            height: 403px">
            <tr>
                <td style="width: 287px; height: 161px">
                </td>
                <td style="width: 76px; height: 161px">
                </td>
                <td style="width: 100px; height: 161px">
                </td>
                <td style="width: 104px; height: 161px">
                </td>
            </tr>
            <tr>
                <td style="width: 287px; height: 99px">
                </td>
                <td style="width: 76px; height: 99px">
        <asp:GridView ID="GridView1" runat="server" BackColor="White" BorderColor="#3366CC" BorderStyle="None" BorderWidth="1px" CellPadding="4" Font-Size="9pt">
            <FooterStyle BackColor="#99CCCC" ForeColor="#003399" />
            <RowStyle BackColor="White" BorderColor="SpringGreen" ForeColor="#003399" />
            <SelectedRowStyle BackColor="#009999" Font-Bold="True" ForeColor="#CCFF99" />
            <PagerStyle BackColor="#99CCCC" ForeColor="#003399" HorizontalAlign="Left" />
            <HeaderStyle BackColor="#003399" Font-Bold="True" ForeColor="#CCCCFF" />
        </asp:GridView>
                </td>
                <td style="width: 100px; height: 99px">
        <asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False" BackColor="White"
            BorderColor="#DEDFDE" BorderStyle="None" BorderWidth="1px" CellPadding="4" DataSourceID="SqlDataSource1"
            ForeColor="Black" GridLines="Vertical" Font-Size="9pt" Width="298px">
            <FooterStyle BackColor="#CCCC99" />
            <Columns>
                <asp:BoundField DataField="BookID" HeaderText="图书编号" InsertVisible="False" ReadOnly="True"
                    SortExpression="ID" />
                <asp:BoundField DataField="BookName" HeaderText="图书编号" SortExpression="Name" />
                <asp:BoundField DataField="BookIntroduce" HeaderText="图书简介" SortExpression="Sex" />
                <asp:BoundField DataField="BookIsNew" HeaderText="是否推荐" SortExpression="Age" />
            </Columns>
            <RowStyle BackColor="#F7F7DE" />
            <SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#F7F7DE" ForeColor="Black" HorizontalAlign="Right" />
            <HeaderStyle BackColor="#6B696B" Font-Bold="True" ForeColor="White" />
            <AlternatingRowStyle BackColor="White" />
        </asp:GridView>
                <asp:Label ID="Label1" runat="server" BackColor="#C0C000" Font-Size="9pt" Width="296px" Text="通过数据源控件SqlDataSource控件实现访问SQL Server数据库"></asp:Label></td>
                <td style="width: 104px; height: 99px">
                </td>
            </tr>
            <tr>
                <td style="width: 287px; height: 17px">
                </td>
                <td style="width: 76px; height: 17px">
        <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="访问SQL Server数据库"
            Width="159px" /></td>
                <td style="width: 100px; height: 17px">
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:mrdbConnectionString %>"
            SelectCommand="SELECT * FROM [tb_Book1]"></asp:SqlDataSource>
                </td>
                <td style="width: 104px; height: 17px">
                </td>
            </tr>
            <tr>
                <td style="width: 287px; height: 66px">
                </td>
                <td style="width: 76px; height: 66px">
                </td>
                <td style="width: 100px; height: 66px">
                </td>
                <td style="width: 104px; height: 66px">
                </td>
            </tr>
        </table>
        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br />
        &nbsp;</div>
    </form>
</body>
</html>

⌨️ 快捷键说明

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