Saturday, April 18, 2009

Disable Prompt on File download

Response.AddHeader("content-disposition", "inline; filename=AppraisalView.txt")
Response.ContentType = "text/plain"
Response.WriteFile("C:\Inetpub\wwwroot\TestApp\AppraisalView.txt")
Response.Flush()
Response.End()

No comments:

Post a Comment