Kamis, 24 Juni 2010

Checking Client Download Success with ASP.NET MVC

Scenario: You want to know if a client completes a large download successfully.Possible Solution: Create a custom ActionResult (perhaps derived from FileStreamResult) that streams the data and checks to see if the client remains connected. public class CheckedFileStreamResult : FileStreamResult{    public CheckedFileStreamResult(FileStream stream, string contentType)        :base(stream,

Tidak ada komentar:

Posting Komentar