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
Free Agile Project Management Tool from Telerik
TeamPulse Community Edition helps your team effectively capture requirements, manage project plans, assign and track work, and most importantly, be continually connected with each other.
Category: ASP.NET | Other Posts: View all posts by this blogger | Report as irrelevant | View bloggers stats | Views: 2837 | Hits: 361

Similar Posts

  • MPI Project Template for VS2010 more
  • How to Make crossdomain.xml Work with SharePoint 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
  • Visual Studio 2010 Extension Manager more
  • Formatting Text in RadControls for WinForms Q3 2009 more
  • Silverlight: RadChart for Export to Image more
  • Why VBA Still Makes Sense more
  • Starter Project Templates (VS 2010 and .NET 4.0 Series) 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