Search KB Filter article types
Basic use of StaticGatewayResourceHandle and IStaticGateway
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've created a class that inherits from IStaticGateway. In the GetGatewayHandler function I create Html page that uses two properties that where set in query string of the Url.
There is a C# and a VB project.
Enjoy
Eyal Albert
Categories: Dynamic Resources (Gateways), Files, Sending dynamic content to client (Gateways)
Tags: Developers, Gateway, Resource Handlers, VB.NET, 1. Beginner, 2. Intermediate, v6.3, v6.4 and Later, 3. Advanced
Revision: 1
Posted: 12/Jan/2008
Updated: 12/Jan/2008
Status: Publish
Types: Code

Note: Codes are submitted as a .zip file to shorten your download time. After downloading it, you will need a program like Winzip to decompress it.

Terms of Agreement:
By using this code, you agree to the following terms...

1. You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
2. You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.
3. You may link to this code from another website, but ONLY if it is not wrapped in a frame.
4. You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.


About the author

Related Articles

Dynamic Resources (Gateways)  
Title Update Author
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
In this “How to” we will learn how to display dynamic images stored in a database in a Visual WebGui application.
Tags: Architects, Developers, Gateway, Resource Handlers, C#, 2. Intermediate, 3. Advanced, Customization, Pre v6.3, v6.3, v6.4 and Later
08/Jan/2008    2008/01/08
.NET HTML5 Web, Cloud and Mobile application delivery | Sitemap | Terms of Use | Privacy Statement | Copyright © 2005-2012 Visual WebGui®       Visual WebGui weblog on ASP.NET Gizmox Blog Visual WebGui Group on LinkedIn Visual WebGui updates on Twitter Visual WebGui Page on Facebook Visual WebGui YouTube Channel Visual WebGui Platform News RSS