asp.net mvc - How to Handle Variable Number of Parameters in Route Method -
I want to use the same post verb method for several numbers of input fields. How can I capture all the parameters passed in the MVC engine (in addition to the method parameter)?
For example, this list of both values should be controlled by the method below
- 1, A, A
-
1, b , A, A, A, A
[AcceptVerbs (HttpVerbs.Post)] Create Public ActionResult (Ent ID)
In DB Post Store For Every Variable}}
You can request. Forms Archive.
foreach (the farming field in request) {string name = field; String Value = Request Farm [field]; // ...}
Comments
Post a Comment