Response.ContentType
if (URL.Contains(".doc"))//URL is document path Response.ContentType = "application/msword"; Response.WriteFile(URL); Response.Flush(); Response.Close();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)