public bool BackUPDB(string ServerName, string UserName, string Password, string strDbName, string strFileName) { #region 数据库的备份的代码 string message = Databases.BackUpDatabase(backuppath, ServerName, UserName, Password, strDbName, strFileName); if (message != "") { base.RegisterStartupScript("", GetMessageScript("备份数据库失败,原因:" + message + "!")); return(false); } return(true); #endregion }