developer747
developer747

Reputation: 15948

A property that exposes post value in asp.net mvc?

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

Answers (1)

Bradley Braithwaite
Bradley Braithwaite

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

Related Questions