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

📄 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 id="Head1" runat="server">
    <title>数据库的附加与分离</title>
</head>
<body style="text-align: center">
    <form id="form1" runat="server">
    <div>
        <table cellpadding="0" cellspacing="0" style="width: 644px; background-image: url(imgae/background.jpg); background-repeat: no-repeat; height: 400px;">
            <tr>
                <td colspan="1" style="width: 229px; height: 105px;">
                </td>
                <td colspan="3" style="height: 105px">
                    <span style="font-size: 24pt"></span></td>
            </tr>
            <tr>
                <td colspan="1" rowspan="2" style="vertical-align: top; width: 229px; text-align: center">
                </td>
                <td colspan="3" rowspan="2" style="vertical-align: top; text-align: center">
                    <table cellpadding="0" cellspacing="0" style="width: 400px; height: 7px;">
                        <tr>
                            <td colspan="3" style="height: 4px; text-align: left; width: 295px;">
                            </td>
                        </tr>
                        <tr>
                            <td colspan="3" style="height: 18px; text-align: center; width: 295px;">
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td colspan="3" rowspan="3" style="text-align: center; width: 295px; height: 28px;">
                                <asp:RadioButtonList ID="RadioButtonList1" runat="server" AutoPostBack="True" Font-Size="9pt"
                                    RepeatDirection="Horizontal" OnSelectedIndexChanged="RadioButtonList1_SelectedIndexChanged">
                                    <asp:ListItem Selected="True">分离数据库</asp:ListItem>
                                    <asp:ListItem>附加数据库</asp:ListItem>
                                </asp:RadioButtonList><span style="font-size: 9pt"></span><span style="font-size: 9pt"></span></td>
                        </tr>
                        <tr style="font-size: 12pt">
                        </tr>
                        <tr style="font-size: 12pt">
                        </tr>
                        <tr style="font-size: 12pt">
                            <td colspan="3" rowspan="1" style="height: 6px; text-align: center; width: 295px;">
                            </td>
                        </tr>
                        <tr style="font-size: 12pt">
                            <td colspan="3" rowspan="1" style="text-align: center; width: 295px; height: 3px;">
                                <table cellpadding="0" cellspacing="0" width="100%" style="height: 11px">
                                    <tr>
                                        <td style="width: 100px; text-align: center">
                                            <span style="font-size: 9pt; color: #9933ff;">查看数据库名</span></td>
                                        <td colspan="2" style="text-align: left">
                                                <asp:DropDownList ID="dropSqlName" runat="server" Font-Size="9pt" Width="190px">
                                                </asp:DropDownList></td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="3" style="text-align: center; width: 295px;">
                                <asp:Panel ID="Panel2" runat="server" Height="5px" Width="100%">
                                    <table cellpadding="0" cellspacing="0" style="width: 106%; height: 3px">
                                        <tr>
                                            <td rowspan="3" style="width: 100px; height: 25px; text-align: center">
                                                <span style="font-size: 9pt; color: #9966ff;">分离操作</span></td>
                                            <td colspan="2" rowspan="3" style="height: 25px; text-align: left;">
                                                </td>
                                        </tr>
                                        <tr>
                                        </tr>
                                        <tr>
                                        </tr>
                                    </table>
                                </asp:Panel>
                                <asp:Panel ID="Panel1" runat="server" Visible="False" Width="100%" Height="5px">
                                    <table cellpadding="0" cellspacing="0" width="100%">
                                        <tr>
                                            <td style="width: 100px; height: 21px; text-align: center;">
                                                <span style="font-size: 9pt; color: #9900ff;">添加附加数据库名称</span></td>
                                            <td colspan="2" style="height: 21px; text-align: left;">
                                                <asp:TextBox ID="TextBox1" runat="server" Width="75px"></asp:TextBox><span style="font-size: 8pt; color: #ff6666;">(*需手动添加)</span></td>
                                        </tr>
                                    </table>
                                    <asp:Label ID="Label1" runat="server" BackColor="Gold" Font-Size="9pt" Text="添加MDF文件"></asp:Label><asp:FileUpload
                                        ID="fileShow" runat="server" Font-Size="9pt" Width="174px" /><br />
                                    <asp:Label ID="Label2" runat="server" BackColor="Gold" Font-Size="9pt" Text="添加LDF文件" Width="75px"></asp:Label><asp:FileUpload ID="FileUpload1" runat="server" Font-Size="9pt" Width="174px" /></asp:Panel>
                                <table cellpadding="0" cellspacing="0" style="width: 99%">
                                    <tr>
                                        <td style="height: 1px; text-align: center;" colspan="4">
                                            <asp:Panel ID="Panel3" Height="5px" runat="server">
                                                <asp:Button ID="btnBackup" runat="server" Font-Size="9pt" OnClick="btnBackup_Click"
                                                    Text="分离数据库" /></asp:Panel>
                                            <asp:Panel ID="Panel4" runat="server" Height="5px" Visible="False">
                                                <asp:Button ID="btnRestore" runat="server" Font-Size="9pt" OnClick="btnRestore_Click"
                                                    Text="附加数据库" /></asp:Panel>
                                            <asp:ValidationSummary ID="ValidationSummary1" runat="server" Font-Size="9pt" ShowMessageBox="True"
                                                ShowSummary="False" />
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="3" style="height: 19px; width: 295px;">
                                &nbsp;</td>
                        </tr>
                    </table>
                    </td>
            </tr>
            <tr>
            </tr>
        </table>
    
    </div>
    </form>
</body>
</html>

⌨️ 快捷键说明

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