Web Design and Development Forums

example of Server.Transfer and Context Handler

This is a discussion on "example of Server.Transfer and Context Handler" within the ASP.NET Forum section. This forum, and the thread "example of Server.Transfer and Context Handler are both part of the Program Your Website category.


Go Back   Webforumz.com > Program Your Website > ASP.NET Forum

Welcome to Webforumz.com.
Register Now Register now!

Reply
 
LinkBack Thread Tools Rate Thread
Old Sep 5th, 2007, 09:16   #1 (permalink)
New Member
 
Join Date: Sep 2007
Location: gurgaon
Age: 21
Posts: 4
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): -
Code: Select all
private void Button1_Click(object sender,System.EventArgs e)
        {
        Server.Transfer("ContextChild.aspx");
        }

        internal Hashtable Value
        {
            get
            {
                Hashtable objHT = new Hashtable();
                objHT["Name"]=TextBox1.Text;
                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(); 
            if(!IsPostBack)
            {
                ContextParent ParentPage;
                ParentPage = (ContextParent)Context.Handler;
                objHT = ParentPage.Value;
                Response.Write("<br><br>");
                foreach(DictionaryEntry di in objHT)
                {
                    Response.Write(di.Key +" : "+di.Value);
                    Response.Write("<br>");
                }
            }
        }

Last edited by karinne; Sep 5th, 2007 at 11:59. Reason: Removed links and no signatures allowed until you reach 10 posts.
hanusoft is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
software development india

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
domain transfer? clippo Hosting & Domains 7 Aug 14th, 2007 19:24
Keep Positioning after Transfer sawa Search Engine Optimization (SEO) 7 Feb 13th, 2007 14:37
Website Ftp Transfer Help russfall New to Web Design 6 Feb 8th, 2007 04:57
URGENT!!!! Send HTTP request from one web server to another server chandra.nowduri ASP.NET Forum 1 Aug 7th, 2006 19:18
DHTML Event Handler problem katrielalex JavaScript Forum 1 Jan 4th, 2006 11:53



Latest Updates

All Points SEO Security Advisory - CHECK YOUR SITE NOW!

Creative Coding :: February 2008

Webforumz is sponsored by: WESH UK Web Hosting
All times are GMT. The time now is 13:53.

Sleep Study Scoring :: Free Bet :: Website Templates :: Online Betting :: Bookmakers :: Funny Quotes :: Internet Recruitment Software :: Microsoft CRM Experts :: Online Casino :: Decorated Christmas Trees :: Midwife Forums :: Football Betting :: Ecommerce Software :: Web Hosting :: Football Stats :: Dry Cleaning Collection :: xtreme wales - extreme clothing :: Apuestas :: Sharepoint Consultants :: Website Optimisation :: Office Clearance London :: Sharepoint Experts :: Sports Betting :: Casino :: Website Templates :: Web Design Development India :: Online Gambling

Powered by: vBulletin Version 3.7, Copyright ©2000 - 2008, Jelsoft Enterprises Limited.
© 2003-2008 Webforumz.com : All Rights Reserved
Search Engine Friendly URLs by vBSEO 3.2.0 RC6


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59