Question

I am working on a form that is generated dynamically based on some meta-data tables in my database. I create input tags with names like setting_1, setting_53, setting_22 where the number is the primary key of the meta-data. Since the content is dynamic, I am using FormCollection as the sole parameter on POST requests.

Question 1: Is there a FormCollection-like class for GET requests? I want direct access to the query parameters.

Question 2: If I need to pass these query parameters around, is there an easy/safe way to build my URLs?

One of my big concerns is that some of the settings are populated via OAuth, so the user will be redirected to an external page. I will have to pass the query string as "state" which I will need to recover once the user returns. I will need to use this state to pick up where the user left off in the form entry process. All the more reason why I need a very fool-proof mechanism for passing query parameters around.

Has anyone dealt with dynamic pages like these? Are there good patterns and practices for passing these pages around?

No correct solution

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top