📄 backuprestore.aspx
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="BackupRestore.aspx.cs" Inherits="HouAdmin_BackupRestore" %>
<!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">
<br />
<table style="width: 800px; background-image: url(../igm/后台登录页面.jpg);" width="800">
<tr>
<td align="center" colspan="3" style="height: 152px">
<br />
</td>
</tr>
<tr style="font-size: 12pt; color: #000000">
<td rowspan="2" style="vertical-align: top; width: 67px; text-align: center">
</td>
<td rowspan="2" style="vertical-align: top; width: 121px; text-align: left">
<asp:TreeView ID="TreeView1" runat="server" ImageSet="Simple" NodeIndent="10" Font-Size="11pt" ShowLines="True" Height="137px" >
<ParentNodeStyle Font-Bold="False" />
<HoverNodeStyle Font-Underline="True" ForeColor="#DD5555" />
<SelectedNodeStyle
Font-Underline="True" HorizontalPadding="0px" VerticalPadding="0px" ForeColor="#DD5555" />
<Nodes>
<asp:TreeNode Expanded="False" Text="管理员" Value="新建节点" NavigateUrl="~/HouAdmin/admin.aspx">
</asp:TreeNode>
<asp:TreeNode Expanded="False" Text="管理注册学生" Value="管理注册学生" NavigateUrl="~/HouAdmin/zhuce_stu.aspx"></asp:TreeNode>
<asp:TreeNode Expanded="False" Text="管理专业信息" Value="管理专业信息" NavigateUrl="~/HouAdmin/zhuanye_xinxi.aspx">
</asp:TreeNode>
<asp:TreeNode Expanded="False" Text="管理课程信息" Value="管理课程信息" NavigateUrl="~/HouAdmin/kecheng_xinxi.aspx">
</asp:TreeNode>
<asp:TreeNode Text="数据库备份与还原" Value="数据库备份与还原" NavigateUrl="~/HouAdmin/BackupRestore.aspx"></asp:TreeNode>
<asp:TreeNode Text="退出系统" Value="退出系统"></asp:TreeNode>
</Nodes>
<NodeStyle Font-Names="Verdana" Font-Size="8pt" ForeColor="Black" HorizontalPadding="0px"
NodeSpacing="0px" VerticalPadding="0px" />
</asp:TreeView>
</td>
<td style="width: 96px; vertical-align: top; text-align: center; height: 379px;">
<table width="550" style="vertical-align: top; text-align: center">
<tr>
<td style="width: 2078px; height: 21px">
<asp:Label ID="Label1" runat="server" Text="查询条件" Font-Size="9pt"></asp:Label></td>
<td style="width: 120px; height: 21px">
<asp:DropDownList ID="ddlAdminName" runat="server" Width="107px" Font-Size="9pt">
<asp:ListItem Value="Name">管理员名称</asp:ListItem>
</asp:DropDownList></td>
<td style="width: 1080px; height: 21px">
<asp:Label ID="Label2" runat="server" Text="关键字" Font-Size="9pt"></asp:Label></td>
<td style="width: 260px; height: 21px">
<asp:TextBox ID="txtSelect" runat="server" Width="100px" Font-Size="9pt"></asp:TextBox></td>
<td style="width: 279px; height: 21px">
<asp:Button ID="btnSelect" runat="server" Text="查询" Font-Size="9pt" /></td>
</tr>
</table>
<br /><br /><br />
<table width="550" style="vertical-align: top; text-align: center">
<tr>
<td style="width: 2700px; height: 21px" align="center">
<span style="font-family: 仿宋_GB2312">数据库列表</span>:<asp:dropdownlist id="dbDropDownList" runat="server" AutoPostBack="True"
OnSelectedIndexChanged="dbDropDownList_SelectedIndexChanged"></asp:dropdownlist>
</td>
</tr>
<tr>
<td style="width: 2700px; height: 21px" align="center">
<span style="font-family: 仿宋_GB2312">请输入备份目录及备份文件名</span>:<asp:textbox id="pathTextBox" runat="server" Width="182px">
C:\BACKUP\Northwind.bak</asp:textbox>(<span style="font-family: 仿宋_GB2312">目录必须存在</span>)
</td>
</tr>
<tr>
<td style="width: 2700px; height: 21px" align="center">
<asp:button id="backupButton" runat="server" Font-Size="9pt" Text="备份数据库"
OnClick="backupButton_Click"></asp:button>
<asp:button id="restoreButton" runat="server" Font-Size="9pt" Text="还原数据库"
OnClick="restoreButton_Click"></asp:button>
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -