易截截图软件、单文件、免安装、纯绿色、仅160KB

asp.net 备份还原数据库


1:客户端
<table border="0" style="width: 60%">
  <tr><td colspan="2" style="height: 5px">
      数据库还原和备份:</td></tr>
  <tr><td style="width: 171px; height: 23px;">
      请选择数据库:</td><td align="left" style="width: 358px; height: 23px;">
    <asp:DropDownList ID="ddlDatabaseList" runat="server" Width="297px">
    </asp:DropDownList></td></tr>
  <tr><td style="width: 171px; height: 18px;">
      要备份的文件名:</td><td align="left" style="width: 358px; height: 18px">
    <asp:TextBox ID="txtDbFileName" runat="server" Width="158px" OnTextChanged="txtDbFileName_TextChanged"></asp:TextBox>
          <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtDbFileName"
              ErrorMessage="数据库名不能空"></asp:RequiredFieldValidator></td></tr>
  <tr><td style="width: 171px">
      操作选项:</td><td align="left" style="width: 358px">
    <asp:RadioButton ID="rbBackup" runat="server" Checked="True" GroupName="action" Text="备份" />
    <asp:RadioButton ID="rbRestore" runat="server" GroupName="action" Text="还原" /></td></tr>
    <tr><td style="width: 171px; height: 40px;">
        操作:<asp:Label ID="Label1" runat="server" ForeColor="#C00000"></asp:Label></td><td align="left" style="width: 358px; height: 40px;">
       <asp:Button ID="btnOK" runat="server" OnClick="btnOK_Click" Text="执 行" Width="51px" />
        </td></tr>
  </table>
2:


相关文档:

ASP.NET BehaviorEditorPart Web 服务器控件概述


      BehaviorEditorPart Web 服务器控件是一个编辑器部件控件,最终用户可以使用该控件在运行时更改关联的 WebPart 控件上的多个用户界面 (UI) 属性。下表列出了用户可自定义的功能,以及用户可使用 BehaviorEditorPart 控件编辑的对应的 WebPart 控件属性值。
用户可自定义的功能
WebPart ......

GDI+入门(九、ASP.NET中GDI+)

九、ASP.NET中GDI+
protected void Page_Load(object sender, EventArgs e)
        {
            string Filename;
            System.Drawing.Image g;
&nbs ......

ASP.NET数据库访问类

比较好的数据库访问类
using System;
using System.Collections.Generic;
using System.Text;
using System.Data.SqlClient;
using System.Data.OleDb;
using System.Data;
using System.Configuration;
namespace PublicClass
{
    /// <summary>    ///
  &n ......

asp.net下实现文件上传到服务器

   string filepath = FileUpload1.FileName;                                        &nb ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号