Ver Mensaje Individual
  #4 (permalink)  
Antiguo 29/10/2008, 09:27
Avatar de Thencho
Thencho
 
Fecha de Ingreso: septiembre-2005
Ubicación: Donosti, munduko politena
Mensajes: 83
Antigüedad: 19 años, 5 meses
Puntos: 1
Respuesta: Abrir Notepad con un fichero .log

Hola Kwasir

Gracias por la respuesta, al final lo he hecho llamando a otra pagina en blanco y poniendole esto.

Código:
 Response.ContentType = "text/plain"
        Response.AppendHeader("content-disposition", "attachment; filename=" & ConfigurationManager.AppSettings("NombreLog") & ".log")
        Dim str() As String = System.IO.File.ReadAllLines(ConfigurationManager.AppSettings("UrlLog"))
        For Each linea In str
            Response.Write(linea & vbCrLf)
        Next
Con esto me abre el notepad con el texto que tenia el log.

Un saludo
__________________
Bueno PEÑA
AGUR !!! :adios: