Passing parameters between pages using page flow

Topics: Web Client Software Factory
Sep 26, 2007 at 8:43 PM
How do I pass parameters between pages using page flow?
Thanx
Developer
Sep 27, 2007 at 3:00 PM
Hi

You can use the UserData property which exposes a PageFlowState. You can add entries with all your parameters that you want to pass to another view.
The current version of Page Flow Application Block doesn’t bring support to query string management.
Example:

// View1 - Create an entry to the UserDate property.
_myPageFlow.UserData["Parameter"] = myParameter;
                                
// …
 
// View2 - Accede to the parameter
myParameter = (MyParameter) _myPageFlow.UserData["Parameter"];
I recommend to you that you read the topic Web Client Software Factory – June 2007 -> Application Blocks ->Page Flow Application Block -> Development Activities -> Using State with Page Flow in the WCSF’s documentation

Please let me know if this helps.

Mariano Converti
http://staff.southworks.net/blogs/mconverti/
Sep 27, 2007 at 7:57 PM
Thanx a lot. I'll read it.