易截截图软件、单文件、免安装、纯绿色、仅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 CatalogZone Web 服务器控件概述

 
      Web 部件控件(例如 CatalogZone 控件)的一项主要功能是可以让最终用户个性化网页并保存其个性化设置。CatalogZone 控件允许最终用户在运行时向 Web 部件页添加 WebPart 控件或其他服务器控件。CatalogZone 控件用作 Web 部件控件集内的主控件,用于在网页中承载 CatalogPart 控件 ......

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


      ImportCatalogPart Web 服务器控件可导入 WebPart 控件的说明文件(或用作 WebPart 控件的其他 ASP.NET 服务器控件)。这样就可以将该控件通过预先指定的设置添加到网页中。该说明文件使用户可以共享 WebPart 控件的设置。
说明文件与控件本身不同。它是以 .WebPart 文件扩展名结尾的 XM ......

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

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

asp.net数据控件 数据绑定控件比较


数据绑定控件比较
(Reapter\DataList\GridView\DatailsView\FormView):
1.插入功能方面:
DetailsView和FormView具有插入功能,其它控件没有
2.模板
DataList\FormView\Repeater三种必须编辑模板,而
GridView和DetailsView只有在将列转换成模板列以后才会出现各种模板.
3.自动分页功能
GridView ,DetailsView和Form ......

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

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