Reputation: 15948
In asp.net mvc, in the controller I can access query string by
HttpContext.Request.QueryString
Similarly is there a property that exposes post data?
Upvotes: 0
Views: 56
Reputation: 1122
You can pass a FormCollection parameter type via the Controller Action.
I just found this answer: https://stackoverflow.com/a/5088493/1139752
I suggest also reading up on the concept of model binding with a view of abstracting away the notion of Request.Form usage within your Action methods.
Upvotes: 1