62,046
社区成员
发帖
与我相关
我的任务
分享
if (File.Exists(destFileName)) //同名数据库已存在
{
Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "", "<script language=JavaScript>confirm('您确认要覆盖原有数据库备份?');</script>");
}
File.Copy(sourceFileName, destFileName, true);
Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "", "<script language=JavaScript> alert('数据库备份成功!');</script>");