Downloading a File with a Save As Dialog in ASP.NET

Posted by: Rick Strahls WebLog, on 21 May 2007 | View original | NEW Bookmarked: 0 time(s)

This seems to be a common question that I hear frequently: How do I download a file from a Web site, but instead of displaying it in the browser see it as a file that can be saved (ie. see the Save As dialog)? Normally when you link a file that file will always display inside of the browser because the browser loads it and automatically determines the content type based on the file extension. So when you click on a link like a jpg image the browser knows it's an image and will display that image....

Advertisement
Category: ASP.NET | Other Posts: View all posts by this blogger | Report as irrelevant | View bloggers stats | Views: 2517 | Hits: 357

Similar Posts

  • ASP.NET MVC: DevExpress Mail Demo more
  • Export Word documents to XPS - Open XML Paper Specification format more
  • Application Identifiers (AI) for EAN-128 barcode generation more
  • How To: Easy printing with Telerik RadGridView for Silverlight more
  • Silverlight: RadChart for Export to Image more
  • Starter Project Templates (VS 2010 and .NET 4.0 Series) more
  • Why VBA Still Makes Sense more
  • Clean Web.Config Files (VS 2010 and .NET 4.0 Series) more
  • Aspose.Total for .NET Q3 2009 Released more
  • Range-Specific Requests in ASP.NET more

News Categories

.NET | Agile | Ajax | Architecture | ASP.NET | BizTalk | C# | Certification | Data | DataGrid | DataSet | Debugger | DotNetNuke | Events | GridView | IIS | Indigo | JavaScript | Mobile | Mono | Patterns and Practices | Performance | Podcast | Refactor | Regex | Security | Sharepoint | Silverlight | Smart Client Applications | Software | SQL | VB.NET | Visual Studio | W3 | WCF | WinFx | WPF | WSE | XAML | XLinq | XML | XSD