Search KB Filter article types
Link - Freeing main UI thread while downloading
Categories: Dynamic Resources (Gateways)
Tags: Architects, Developers, Gateway, Resource Handlers, 1. Beginner, 2. Intermediate, 3. Advanced, Pre v6.3, v6.3, v6.4 and Later
Revision: 1
Posted: 04/Oct/2009
Updated: 24/May/2010
Status: Publish
Types: Article

Overview

When downloading big files via a Gateway, the main UI thread of your application is unresponsive until the download is finished. This means the user must wait for the download to complete before anything else can be done in the UI of your app.

A neat trick is to use Link.Open for the download "call" which effectively frees your UI while the download is taking place in that new other window you created.

ReferencesForum threads

About the author

Related Articles

Dynamic Resources (Gateways)  
Title Update Author
This small application is a code snippet of how to use a StaticGatewayResourceHandle and IStaticGateway. The StaticGatewayResourceHandle allows generating resources on demand. StaticGatewayResourceHandle receives a type instead of an instance and using this type it generates a gateway on demand. I'v...
Tags: Developers, Gateway, Resource Handlers, VB.NET, 1. Beginner, 2. Intermediate, v6.3, v6.4 and Later, 3. Advanced
12/Jan/2008    2008/01/12
The following peace of code contains a small project that demonstrates creating a simple download button using a gateway.
Tags: Developers, Gateway, 1. Beginner, 2. Intermediate, Navigation, Pre v6.3, v6.3, 3. Advanced
09/Jan/2007    2007/01/09
Visual WebGui basically leverages the WinForms object model giving the developer a new development experience developing rich internet applications like outlook web access.
Tags: Developers, Gateway, 1. Beginner, 2. Intermediate, v6.3, v6.4 and Later, 3. Advanced
04/Jan/2007    2007/01/04
Tags: Architects, Developers, Gateway, Resource Handlers, 1. Beginner, 2. Intermediate, Pre v6.3, v6.3, v6.4 and Later, 3. Advanced
02/Jan/2009    2009/01/02
Hi Guys, I've created a very easy control to send Files down to the browser. Supports both Files & Streams. Hope you find it helpful! Ryan D. Hatch ryan [dot] hatch [at sign] konect [dot] com
Tags: Architects, Developers, Gateway, 1. Beginner, 2. Intermediate, 3. Advanced, v6.3, v6.4 and Later
03/Jan/2009    2009/01/03
This sample code generate a CSV file which is downloaded from a button click event.
Tags: Developers, Gateway, C#, 2. Intermediate, 3. Advanced, v6.3, v6.4 and Later
08/Jan/2007    2007/01/08
.NET Web, Cloud and Mobile application delivery platform | Sitemap | Terms of Use | Privacy Statement | Copyright © 2005-2011 Visual WebGui®       Visual WebGui weblog on ASP.NET Visual WebGui Group on LinkedIn Visual WebGui updates on Twitter Visual WebGui Page on Facebook Visual WebGui YouTube Channel Visual WebGui Platform News RSS