Search KB Filter article types
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
Overview

This article is a part of Form Concepts series of articles.

Why use Context.Transfer

Performing 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  
Title Update Author
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
01/Jan/2009    2009/01/01
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
11/Jan/2007    2007/01/11
Tags: Developers, Customization, Navigation, Pre v6.3, v6.3, v6.4 and Later
09/Jan/2007    2007/01/09
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
09/Jan/2007    2007/01/09
Tags: Developers, Windows & Dialogs, 1. Beginner, 2. Intermediate, Pre v6.3, v6.3, v6.4 and Later, 3. Advanced
23/July/2010    2010/07/23
Tags: Architects, Developers, Navigation, Windows & Dialogs, 1. Beginner, 2. Intermediate, 3. Advanced, Navigation, Pre v6.3, v6.3, v6.4 and Later
24/May/2010    2010/05/24
.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