Library tutorials & articles

Manual File Downloads In ASP.NET

Introduction

In this article, I'm going to talk about a simple ASP.NET application I recently created for the Slovak parliament. The application allows browsing and displaying transcripts of parliamentary debates (see http://www.nrsr.sk/bin/net/nrozprava/; Slovak language only).

The transcripts are stored as plain text files. Each text file contains transcript for a given time frame, which is encoded in the file's name. All the text files are stored in a single file system folder. How the debate's audio records get transcripted and how the text files make their way into the folder is not important for this discussion.

The job of the ASP.NET application is, among others, to display the list of transcripts with associated time frames and allow the user to view the contents of selected transcripts. In order for the transcript files to be more readable to the user, the application applies some basic HTML formatting to the transcript's plain text before it is sent to the browser for viewing. For various reasons, I've designed the formatting process to take place dynamically whenever a user requests a given transcript file.

Comments

  1. 01 Jan 1999 at 00:00

    This thread is for discussions of Manual File Downloads In ASP.NET.

Leave a comment

Sign in or Join us (it's free).

Palo Mraz I live in Slovakia with my wife, two sons (fulltime), one daughter (occasionally) and a dog. I've been doing Microsoft Windows development since 1988; primarily in VB. I'm a big fan of the MS .NET ...

Related podcasts

Events coming up

  • Mar 15

    DevWeek 2010

    London, United Kingdom

    DevWeek is Europe’s leading independent conference for software developers, database professionals and IT architects, and features expert speakers on a wide range of topics, including .NET 4.0, Silverlight 3, WCF 4, Visual Studio 2010, REST, Windows Workflow 4, Thread Synchronization, ASP.NET 4.0, SQL Server 2008 R2, LINQ, Unit Testing, CLR & C# 4.0, .NET Patterns, WPF 4, F#, Windows Azure, ADO.NET, Entity Framework, Debugging, T-SQL Tips & Tricks, and more.

Want to stay in touch with what's going on? Follow us on twitter!