Gateway

From Visual WebGui Wiki

Jump to: navigation, search


Contents

Gateways and ResourceHandles

Resources such as images, documents etc. are normally static.
They need to be specifically requested for by the client browser.
When the client requests a resource, the request reaches the server and it finds the resource. It then sends it back to the client in a dedicated response.

A Gateway is simply a way to have the request to the server, reach a specific .NET code section inside your application in server-side, that will dynamically generate the content that will be returned in a response to the client.
In the Gateway server code, you can do anything you need and also retrieve or generate the contents of the response.
The Gateway can set the ContentDisposition that determines if the content is to be opened to be viewed inside the page or separately, to be saved, for example.

See Also

Gateway

GatewayReference

ResourceHandle

ImageResourceHandle

IconResourceHandle

AssemblyResourceHandle

Forum threads

Code samples

DatabaseResourceHandle

StaticGatewayResourceHandle

Static Gateways are different from regular (component) gateways as the Static Gateway's absolute Url is known at design time while the absolute Url of (component) gateways is not known until runtime and their Url is based on the Id of the component they are implemented on.

Tips & Tricks

Code Samples

Forum threads

See also

References

Forum threads

Videos

Issues

Code samples

Other references


Personal tools