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

📄 backup.aspx

📁 互联网程序设计的课程
💻 ASPX
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="backup.aspx.cs" Inherits="backup_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><link href="../css/sub.css" rel="stylesheet" />
	<style type="text/css">
.style1 {
	text-align: right;
}
.style2 {
	text-align: left;
}
.style3 {
	text-align: center;
}
</style>
<script language="javascript" type="text/javascript">

</script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        &nbsp;&nbsp;
        <table style="width: 90%">
            <tr>
                <td colspan="6" style="height: 39px">
                    <span style="font-size: 16pt; font-family: 宋体"><span style="font-family: Times New Roman">
                    数据库信息备份与恢复</span></span></td>
            </tr>
        </table>
        <table style="width: 700px; font-family: Times New Roman;">
            <tr>
                <td align="left" colspan="2" style="height: 31px; text-align: center">
                    <asp:Label ID="Labelts" runat="server" Width="354px" Height="43px" ForeColor="Red"></asp:Label>
                    </td>
            </tr>
            <tr>
                <td align="center" style="height: 46px;" colspan="2">
                    选择操作类型:<asp:DropDownList ID="DropDownListxm" runat="server" AutoPostBack="True" OnSelectedIndexChanged="DropDownListxm_SelectedIndexChanged"
                        Width="134px">
                        <asp:ListItem Selected="True" Value="0">请选择操作类型</asp:ListItem>
                        <asp:ListItem Value="1">数据备份</asp:ListItem>
                        <asp:ListItem Value="2">数据恢复</asp:ListItem>
                    </asp:DropDownList>
                    &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                    &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</td>
            </tr>
            <tr>
                <td align="right" colspan="2" style="height: 175px">
                    <asp:Panel ID="Panelbf" runat="server" Height="50px" Width="125px">
                        <table style="width: 700px">
                            <tr>
                                <td align="right" style="width: 353px">
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="textboxurl"
                                        ErrorMessage="请输入目录!!!"></asp:RequiredFieldValidator>请输入备份路径 : &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;
                                </td>
                                <td align="left">
                                    &nbsp;<asp:TextBox ID="textboxurl" runat="server" Width="150px"></asp:TextBox>
                                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="textboxurl"
                                        ErrorMessage="请输入正确的目录!!" SetFocusOnError="True" ValidationExpression="^[a-zA-Z]:(([a-zA-Z]*)||([a-zA-Z]*\\))*"
                                        Width="171px"></asp:RegularExpressionValidator>&nbsp;</td>
                            </tr>
                            <tr>
                                <td align="right" style="width: 353px">
                                </td>
                                <td align="left">
                                    &nbsp;<asp:Button ID="bf" runat="server" Text="备份" OnClick="bf_Click" /></td>
                            </tr>
                        </table>
                    </asp:Panel>
                    <asp:Panel ID="Panelhf" runat="server" Height="50px" Width="125px">
                        <table style="width: 700px">
                            <tr>
                                <td align="right" style="width: 353px">
                                    请选择恢复文件: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                                </td>
                                <td align="left">
                                    &nbsp;&nbsp;&nbsp;
                                    <asp:FileUpload ID="FileUpload1" runat="server" Width="213px" />
                                    &nbsp; &nbsp;
                                    <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="FileUpload1"
                                        ErrorMessage="请选择正确的数据库文件!" SetFocusOnError="True" ValidationExpression="^.+\.(bak)|(BAK)$"
                                        Width="171px"></asp:RegularExpressionValidator></td>
                            </tr>
                            <tr>
                                <td align="right" style="width: 353px">
                                </td>
                                <td align="left">
                                    <asp:Button ID="hfqd" runat="server" Text="恢复" OnClick="hfqd_Click"  /></td>
                            </tr>
                        </table>
                    </asp:Panel>
                    &nbsp; &nbsp;
                    &nbsp;&nbsp;
                </td>
            </tr>
        </table>
    
    </div>
    </form>
</body>
</html>

⌨️ 快捷键说明

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