Forum     

Go Back   Digit Technology Discussion Forum > News > Technology News
Register FAQ Calendar Mark Forums Read

Technology News News from the world of technology that our members stumble across. NOTE: Sources to be mentioned at the beginning of each post.


Closed Thread
 
LinkBack Thread Tools Display Modes
Old 10-09-2007, 03:55 PM   #1 (permalink)
Right Off the Assembly Line
 
Join Date: Sep 2007
Posts: 2
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.

http://www.hanusoftware.com


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)
{
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>");
}
}
}






Software Development India
hanusoft is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 10-09-2007, 04:09 PM   #2 (permalink)
God of Mistakes...
 
Garbage's Avatar
 
Join Date: Dec 2005
Location: Pune, Maharashtra
Posts: 1,923
Default Re: example of Server.Transfer and Context Handler

hey... check this...
Quote:
Technology News News from the world of technology that our members stumble across. NOTE: Sources to be mentioned at the beginning of each post.
can't u read this ??? UR post is _NOT_ a news anyhow !! :-X

And first of all READ FORUM RULES !!!
__________________
Registered Linux User #468778
----------------------------------
http://twitter.com/_Garbage_
Garbage is offline  
Closed Thread

Bookmarks

Thread Tools
Display Modes

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
Context Menu Problem. Please Help. avik_basu QnA (read only) 5 10-05-2007 10:55 PM
Customize Context Menu ismart QnA (read only) 1 25-03-2007 05:01 PM
adobe acrobat window handler mahendran Software Q&A 2 28-10-2005 09:17 AM
irritating Context menu hansraj QnA (read only) 1 18-03-2005 06:35 PM

 
Latest Threads
- by clinton
- by abhidev
- by abhidev
- by Krow
- by Tenida
- by iGamer

Advertisement




All times are GMT +5.5. The time now is 01:25 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2