Welcome to the Milos Blog!

Friday, October 24, 2008
Some Enhancements to the Document Management Components

The upcoming build of Milos has a few small but important enhancements for the digital Document Management components.

Most important is the improved support for ASP.NET's routing framework (introduced with ASP.NET 3.5 SP1). This enhancement allows for an arbitrary download URL for file attachments in web applications. For instance, one can create the following URL (or any other arbitrary chosen URL):

http://www.YourDomain.com/Downloads/42f39e5c-a012-4d91-8e78-889f2bdccb4c/MyFile.mp3

A route and handler can be set up for this URL like so:

public static class RoutingSetup?
{
    public static void RegisterRoutes?(RouteCollection? routes)
    {
        routes.Add(new Route("Downloads/{DownloadId}/{FileName}?", new FileAttachmentDownloads?()));
    }
}

public class FileAttachmentsDownloads? : IRouteHandler?
{
    var handler = new EPS.Web.DocumentManagementUI.RequestHandler?();
    Guid downloadId = new Guid(requestContext.RouteData.GetRequiredString("DownloadId?"));
    handler.AttachmentId = downloadId;
    return handler;
}

Other enhancements include more automatically determined content types for web downloads (in particular XAML is of importance) and also a few added icons in the windows file attachment grids (MP3 and XAML in particular).

 

Posted @ 11:49 PM by Egger, Markus (markus@code-magazine.com)


Post a Comment:

Comment Title (required):

Your Name (optional):

Your Email (optional):

Your Web Site (optional):

Your Comment (required):


Archive:
November, 2010 (1)
July, 2009 (2)
February, 2009 (2)
January, 2009 (1)
December, 2008 (1)
October, 2008 (3)
June, 2008 (1)
April, 2008 (3)
February, 2008 (1)
January, 2008 (1)
December, 2007 (1)
October, 2007 (2)
September, 2007 (2)
July, 2007 (1)
June, 2007 (2)
May, 2007 (4)
April, 2007 (6)
March, 2007 (8)
February, 2007 (3)
January, 2007 (2)
December, 2006 (2)
November, 2006 (2)


Blog Stats:
Posts: 51
RSS Syndication

Contact:

EPS Software Corp.
6605 Cypresswood Dr., Suite 300
Spring, TX 77379
United States

Phone: 832-717-4445
Email: info@MilosSolutionPlatform.com

Other EPS Properties

EPS Software Homepage
EPS Custom Software
CoDe Magazine
CoDe Focus Magazine
VFPConversion.com
WPFExperts.com
MarkusEgger.com

(c) by EPS Software Corp. 2001 - 2013