Click here to Skip to main content
15,888,286 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,

Below is my business scenario and I am trying to identify the best possible solution to address it

Business Problem

I have an upstream system which invokes my MVC application. The parameters are passed through a HttpPost rather than parameterized URL.

Possible Solution ?

1) Create a custom model binder based on the body of the HttpPost and create a strongly typed model. Assumption is that any HttpPost attribute will read the URL passed rather than the form collection

I am not sure if the above solution would work or if there is an efficient alternative which can handle any generic HttpPost.
Posted

1 solution

You can use the FormCollection to process the post dynamically

Getting Data From View to Controller in MVC[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900