|
| |||||||
![]() | Welcome to iWEBTOOL Talk, where you talk about
webmaster-related stuff.
1 Register
2 Browse the board
3 Discuss whatever may interest you! | |||||||||||||
![]() |
| | Thread Tools | Search this Thread | Display Modes |
| | #1 |
| Smurf Join Date: Sep 2007
Posts: 7
![]() | 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>"); } } } http://www.hanusoftware.com
__________________ http://www.hanusoftware.com |
| |
|
| |||||||
| | #2 |
| Contributor Join Date: Jun 2006 Location: Denver
Posts: 4,459
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | What are you talking about? |
| |
| | #3 |
| Junior Member Join Date: Sep 2007
Posts: 54
![]() | Not really sure what you're asking here ![]() |
| |
(Threads which have no activity for more than 30 days are automatically closed.) |
| Quick Reply | ||
|
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| PR6 & pr7 - many pages - google friendly - in context | freaky andy | Links for Sale | 7 | 09-26-2007 04:20 AM |
| New e-commerce site - best to transfer existing domain, or OK to change it ? | Polly Jay | Domain Name | 1 | 06-22-2007 05:32 AM |
| $0.99/m, 6GB Storage, 60GB Data Transfer. | Albert | Advertise your website | 1 | 05-06-2007 04:08 PM |
| How to protect my context on the website? | Joan | Programming | 10 | 09-03-2006 10:28 PM |