Torna al Thread

Dim FileName As String = "Modellofogliointervento.dotx" Dim path As String = "C:\...\Modellofogliointervento.dotx" Response.Clear() Response.Buffer = True Response.ContentType = "application/vnd.ms-word" Response.AppendHeader("Content-Disposition", "attachment; filename=Modellofogliointervento.dotx") <--- Mancava questa riga Response.TransmitFile(path) Response.End()
Copyright © dotNetHell.it 2002-2024
Running on Windows Server 2008 R2 Standard, SQL Server 2012 & ASP.NET 3.5