SHARE
TWEET

Untitled

a guest Jun 20th, 2019 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. protected void btnDescargar_Click(object sender, EventArgs e)
  2.     {
  3.  
  4.         string ruta;
  5.         ruta = @"C:ArchivoReporte.txt";
  6.  
  7.         Response.ContentType = "text/plain";
  8.         Response.ContentEncoding = System.Text.Encoding.UTF8;
  9.         Response.AppendHeader("NombreCabecera", "MensajeCabecera");
  10.         Response.TransmitFile(ruta);
  11.         Response.End();
  12.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top