Form Concepts CodeSample - Transfering context to another form
Categories: Views Navigation
|
Tags: Architects, Developers, Navigation, C#, VB.NET, 1. Beginner, 2. Intermediate, 3. Advanced, Navigation, Pre v6.3, v6.3, v6.4 and Later
Revision:
1
Posted:
20/Sep/2009
Updated:
23/July/2010
Status:
Publish
Types: Article
|
This article will have a few sections added to it soon, based on the following article type skeleton: CodeSample OverviewThis article is a part of Form Concepts series of articles.
Why use Context.TransferPerforming Context.Transfer to another form is prefered over a Context.Redirect for a few reasons.
- In terms of efficiency, Context.Transfer is significantly more efficient that Context.Redirect. The reason for it is that it processed within the same request context and allthough it is effectively transfering to a new mainform, it does not create a new Context.
- Less memory overhead as you use the same context and the server side does not have to create a new one
- You preserve all the context variables you have saved
- Target form (being transfered to) does not have to be available as application entry point (MainForm).
Why Context.Redirect is less prefered
Context.Redirect is a complete redirection to another mainform, which requres a new Context to be created, which both takes more time and resources. In addition, Context.Redirect requires that the form redirected to has to be available as application entry point (MainForm).
VB.NET Code
Context.Transfer(New SlaveForm)
C# Code
Context.Transfer(New SlaveForm);
About the author
Related Articles
|
Views Navigation
|
|
|
This video demonstrates how to Simulating IFRAMES in Visual WebGui
Tags:
Architects, Developers, Navigation, Windows & Dialogs, C#, 1. Beginner, 2. Intermediate, 3. Advanced, Layouting, Navigation, Pre v6.3, v6.3, v6.4 and Later
|
|
|
This code sample demonstrates a simple application that has two registered forms which can be switched between.
Tags:
Developers, Navigation, Windows & Dialogs, 1. Beginner, Navigation, Pre v6.3, v6.3, v6.4 and Later, 2. Intermediate, 3. Advanced
|
|
|
Tags:
Developers, Customization, Navigation, Pre v6.3, v6.3, v6.4 and Later
|
|
|
This sample demonstrates how to create and use a WebGUI wizard control. The sample contains one wizard sample which contains 3 wizard steps.
Tags:
Developers, Customization, Navigation, Pre v6.3, v6.3, v6.4 and Later
|
|
|
Tags:
Developers, Windows & Dialogs, 1. Beginner, 2. Intermediate, Pre v6.3, v6.3, v6.4 and Later, 3. Advanced
|
|
|
Tags:
Architects, Developers, Navigation, Windows & Dialogs, 1. Beginner, 2. Intermediate, 3. Advanced, Navigation, Pre v6.3, v6.3, v6.4 and Later
|
|
|
|