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

📄 index.aspx

📁 这是asp.net^和Visual C++Sharp编写的串并口通讯的书籍 源代码
💻 ASPX
字号:
<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Index.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 style="text-align: center">
    <form id="form1" runat="server">
    <div>
        <table cellpadding="0" cellspacing="0" style="width: 644px; background-image: url(Images/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;">
                                <asp:RadioButtonList ID="RadioButtonList1" runat="server" AutoPostBack="True" Font-Size="9pt"
                                    RepeatDirection="Horizontal">
                                    <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">操 作 数 据 库</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">备份名称和位置</span></td>
                                            <td colspan="2" rowspan="3" style="height: 25px; text-align: left;">
                                                <asp:TextBox ID="TextBox1" runat="server" Font-Size="9pt" Width="183px"></asp:TextBox>
                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TextBox1"
                                                    ErrorMessage="备份地址不能为空">*</asp:RequiredFieldValidator><span style="font-size: 9pt;
                                                        color: #ff3300">(如D:\beifen)</span></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">还 原 数 据 库</span></td>
                                            <td colspan="2" style="height: 21px; text-align: left;">
                                                <asp:FileUpload ID="fileShow" runat="server" Font-Size="9pt" Width="190px" /></td>
                                        </tr>
                                    </table>
                                </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 + -