获取有关HTTP POST字段顺序信息 [英] Get info about Http Post field order

查看:84
本文介绍了获取有关HTTP POST字段顺序信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能在ASP.NET,以获取有关后场的订单信息?我需要知道一些字段是否是最后一个或没有。

Is it possible to get information about post field order in ASP.NET? I need to know whether some field was the last one or not.

我知道我可以通过Request.InputStream做到这一点,但我没有手动流解析寻找一个更高级的解决方案

I know I can do it through Request.InputStream, but I’m looking for a more high level solution without manually stream parsing.

通常我做的测试我的应用程序发送HTTP POST的并没有在ASP.NET这个没有实际用途。

Generally I’m doing testing of http post sent by my application and there is no practical usage for this in ASP.NET.

推荐答案

的职务序列是因为他们网页上找到的相同。

请这个测试,你让他们的顺序,是你把它放在网页上的人。

Make this test, the order you get them, is the one you have placed it on page.

foreach (string cEna in Request.Form)
{
    txtDebug.Text += "<br>" + cEna;
}

这篇关于获取有关HTTP POST字段顺序信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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