Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > Other ASP.NET > ASP.NET 1.x and 2.0 Application Design
ASP.NET 1.x and 2.0 Application Design Application design with ASP.NET 1.0, 1.1, and 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.x and 2.0 Application Design section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old September 5th, 2007, 11:53 PM
Posts: n/a
Default example of Server.Transfer and Context Handler

This is an example of Server.Transfer and Context Handler.
Through this we can get the multiple values of previous form.

In this page we are displaying data from previous form. We can use this technique for multiple form registration form.

Code (ContextParent.aspx.cs): -

private void Button1_Click(object sender,System.EventArgs e)

        internal Hashtable Value
                Hashtable objHT = new Hashtable();
                objHT["FathersName"]= TextBox2.Text;
                objHT["Address"] = TextBox3.Text;
                return objHT;
Code (ContextChild.aspx.cs) :-

private void Page_Load(object sender, System.EventArgs e)
            // Put user code to initialize the page here
            Hashtable objHT = new Hashtable();
                ContextParent ParentPage;
                ParentPage = (ContextParent)Context.Handler;
                objHT = ParentPage.Value;
                foreach(DictionaryEntry di in objHT)
                    Response.Write(di.Key +" : "+di.Value);

Similar Threads
Thread Thread Starter Forum Replies Last Post
Server.Transfer Sheraz Khan ASP.NET 2.0 Basics 1 July 28th, 2007 05:17 AM
Using Items.Context with Server.Transfer jazzcatone ASP.NET 1.0 and 1.1 Basics 0 August 27th, 2006 04:53 PM
Transfer Data from one server to another server Jane SQL Server 2000 2 February 28th, 2005 03:15 AM
SSL and server.transfer shs BOOK: Beginning ASP.NET 1.0 2 September 1st, 2004 09:58 PM
Server.Transfer Not Working sg48 ASP.NET 1.0 and 1.1 Basics 1 June 21st, 2003 10:24 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.