Base de datos SQL de respaldo VB.NET
Utilice System.Web.UI;
Utilice System.Web.UI.WebControls;
Utilice System.Web.UI .WebParts
usando System.Web.UI.WebControls
usando System.IO
usando System.Text
usando; _5dRss.Web.UI.Page
{
Página_Load vacía protegida (remitente del objeto, EventArgs e)
{
/Generar un lista de archivos de respaldo
ListBackupFiles();
if (!Page.IsPostBack)
{
Showmsg.Visible = false;
/ruta de la base de datos
lilDBPath.Text = HttpContext.Current.Request.PhysicalApplicationPath "App_Data\" ConfigurationSettings.AppSettings["DBFile"];
/. / Cree un nuevo objeto FileInfo y obtenga el tamaño del archivo de la base de datos, luego convierta la unidad a KB
FileInfo myFileInfo = new FileInfo( lilDBPath.Text);
lilDBSize.Text=Convert. ToString( myFileInfo.Length/1024) "KB";
//Si ambos parámetros no son nulos, continúe
if (Request.QueryString["cmd") "KB" ;