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

asp.net c# 数据库备份

protected void btnsearch_ServerClick(object sender, EventArgs e)
    {
        string lujing=this.Text2.Value.ToString().Trim();
        string shujuku = this.jine.Value;
        string wenjianming = this.Text1.Value.ToString().Trim();
        if (wenjianming.IndexOf(".bak") == -1)
        {
            Page.ClientScript.RegisterStartupScript(Page.GetType(), "", "<script>alert('备份文件名格式错误!');</script>");
            return;
        }
        if (System.IO.File.Exists(lujing))
        {
            //则表示存在
        }
        else
        {
            //创建该文件夹 
            System.IO.Directory.CreateDirectory(lujing);
        }
        string wenjj = lujing + @"\" + wenjianming;
        if (System.IO.File.Exists(wenjj))
        {
            Page.ClientScript.RegisterStartupScript(Page.GetType(), "", "<script>alert('备份文件名已存在,请重新命名!');</script>");
            return;
        }
        string cmd1 = "backu


相关文档:

C#与Flash交互

C#与Flash交互 (转自小磊在线)
C#与Flash交互
前段日子公司要求做一个C#与Flash交互的东西,用来C#与短信猫通讯将数据传到Flash上显示与操作的应用。
第一步C#添加组件
打开VS2005-工具-选择工具箱项-COM组件-选择Shockwave Flash Object-确定
添加好组件往场景上拖放,如果提示注册需求注册
c# 注册控件-在运行输 ......

用C#(ASP.NET)怎么实现文件下载功能

using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.IO;
public partial class _Default : Syste ......

asp.net 4种事务


<!--
/* Font Definitions */
@font-face
{font-family:宋体;
panose-1:2 1 6 0 3 1 1 1 1 1;
mso-font-alt:SimSun;
mso-font-charset:134;
mso-generic-font-family:auto;
mso-font-pitch:variable;
mso-font-signature:3 135135232 16 0 262145 0;}
@font-face
{font-family:"Cambria Mat ......

asp.net(c#) static关键字用法小结

静态变量
       当我们编写一个类时,其实就是在描述其对象的属性和行为,而并没有产生实质上的对象,只有通过new关键字才会产生出对象,这时系统才会分配内存空间给对象,其方法才可以供外部调用。
       有时候,我们希望无论是否产生了对象或无论 ......

C#和JavaScript的简单互交

1.asp.net呼叫js
   
                     Response.Write("<script language=javascript>");
              &n ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号