In my asp.net project, I can use:
System.Web.HttpContext.Current.Response.ContentType = "Application/pdf"; System.Web.HttpContext.Current.Response.T