直接访问帖子数据 [英] Access post data directly

查看:46
本文介绍了直接访问帖子数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在一个控制器中有一个动作,该动作将从MVC网站外部接收HTTP POST请求.

I have an action in one of my controllers that is going to receive HTTP POST requests from outside of my MVC website.

所有这些POST请求都将具有相同的参数,我需要能够解析这些参数.

All these POST requests will have the same parameters and I need to be able to parse the parameters.

如何从操作中访问帖子数据?

How can I access the post data from within the action?

这可能是一个非常简单的问题!

This is potentially a very simple question!

谢谢

推荐答案

可以从Request.Form获取来自HTTP请求的POST数据.

The POST data from your HTTP Reques can be obtained at Request.Form.

这篇关于直接访问帖子数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆