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

Posted by: Rick Strahls WebLog, on 21 May 2007 | View original | 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: 2793 | Hits: 361

Similar Posts

  • How to Make crossdomain.xml Work with SharePoint more
  • Silverlight: RadChart for Export to Image more
  • MPI Project Template for VS2010 more
  • New content providers for the RadEditor and RadFileExplorer controls more
  • Using T4 Templates for Simple DTOs more
  • ASP.NET 4 Web Server Here Shell Extension more
  • Formatting Text in RadControls for WinForms Q3 2009 more
  • Visual Studio 2010 Extension Manager more
  • Hey, nice package! more
  • Hey, nice package! 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