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

📄 index1.aspx

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

<!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 style="text-align: center">
        <table cellpadding="0" cellspacing="0"width="644" style="background-image: url(Images/background.jpg)" height="401">
            <tr>
                <td colspan="1" rowspan="1" style="width: 183px; height: 45px" title="备份还原数据库">
                </td>
                <td colspan="3" rowspan="1" style="height: 45px" title="备份还原数据库">
                    <span style="font-size: 24pt"></span></td>
            </tr>
            <tr>
                <td colspan="1" rowspan="3" style="height: 33px; width: 183px;">
                </td>
                <td colspan="3" rowspan="3" style="height: 33px; text-align: center;">
                    <table width="450">
                        <tr>
                            <td colspan="3" rowspan="3">
                            </td>
                        </tr>
                        <tr>
                        </tr>
                        <tr>
                        </tr>
                        <tr>
                            <td colspan="3" rowspan="1">
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td colspan="3" rowspan="1">
                                <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></td>
                        </tr>
                        <tr>
                            <td colspan="3" rowspan="1">
                                <table cellpadding="0" cellspacing="0" width="450">
                                    <tr>
                                        <td style="width: 99px; height: 21px; text-align: center">
                                            <span style="font-size: 9pt">操 作 数 据 库</span></td>
                                        <td colspan="2" style="width: 210px; height: 21px; text-align: left; font-size: 12pt;">
                                            <asp:DropDownList ID="dropDatabase" runat="server" AutoPostBack="True" Font-Size="9pt"
                                                Width="190px" OnSelectedIndexChanged="dropDatabase_SelectedIndexChanged">
                                            </asp:DropDownList></td>
                                    </tr>
                                    <tr style="font-size: 12pt">
                                        <td style="width: 99px;height: 21px; text-align: center">
                                            <span style="font-size: 9pt">操 作 数 据 表</span></td>
                                        <td colspan="2" style="width: 210px; height: 21px; text-align: left">
                                            <asp:DropDownList ID="dropTable" runat="server" Font-Size="9pt"
                                                Width="188px">
                                            </asp:DropDownList></td>
                                    </tr>
                                    <tr style="font-size: 12pt">
                                        <td style="width: 99px;height: 21px; text-align: center">
                                            <span style="font-size: 9pt">数 据 库 密 码</span></td>
                                        <td colspan="2" style="width: 210px; height: 21px; text-align: left">
                                            <asp:TextBox ID="txtPwd" runat="server" Font-Size="9pt" Width="183px"></asp:TextBox>
                                        </td>
                                    </tr>
                                </table>
                                <asp:Panel ID="Panel7" runat="server" Height="5px">
                                    <table cellpadding="0" cellspacing="0" width="450">
                                        <tr>
                                            <td style="width: 179px; text-align: center; height: 23px;">
                                                <span style="font-size: 9pt">备份名称和位置 &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;
                                                </span></td>
                                            <td style="text-align: left; height: 23px; width: 338px;">
                                                <asp:TextBox ID="txtPath" runat="server" Font-Size="9pt" Width="183px"></asp:TextBox>
                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtPath"
                                                    ErrorMessage="备份地址和名称不能为空">*</asp:RequiredFieldValidator><span style="font-size: 9pt;
                                                        color: #ff3300">(如D:\beifen)</span></td>
                                        </tr>
                                    </table>
                                </asp:Panel>
                                <asp:Panel ID="Panel8" runat="server" Height="5px" Visible="False">
                                    <table cellpadding="0" cellspacing="0" width="450">
                                        <tr>
                                            <td style="width: 145px; height: 21px; text-align: center">
                                                <span style="font-size: 9pt">还 原 数 据 表 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;
                                                </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>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="3" rowspan="1">
                                <table cellpadding="0" cellspacing="0">
                                    <tr>
                                        <td colspan="4" style="height: 1px; text-align: center">
                                            <asp:Panel ID="Panel9" runat="server" Height="5px">
                                                <asp:Button ID="Button1" runat="server" Font-Size="9pt" OnClick="btnBackup_Click"
                                                    Text="备份数据表" /></asp:Panel>
                                            <asp:Panel ID="Panel10" runat="server" Height="5px" Visible="False">
                                                <asp:Button ID="Button2" 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>
                    </table>
                    </td>
            </tr>
            <tr>
            </tr>
            <tr>
            </tr>
        </table>
    
    </div>
    </form>
</body>
</html>

⌨️ 快捷键说明

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