什么时候Request.Params到Request.Form有什么不同? [英] When do Request.Params and Request.Form differ?

查看:136
本文介绍了什么时候Request.Params到Request.Form有什么不同?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近遇到一个问题,如果用的Request.Form访问,但罚款,如果有Request.Params检索的值为空。有什么可导致此?

I recently encountered a problem where a value was null if accessed with Request.Form but fine if retrieved with Request.Params. What are the differences between these methods that could cause this?

推荐答案

的Request.Form仅包括通过表单提交的变量,而Request.Params包括这两种方法之间的差异提交的表单变量和GET变量指定为URL参数。

Request.Form only includes variables posted through a form, while Request.Params includes both posted form variables and get variables specified as URL parameters.

这篇关于什么时候Request.Params到Request.Form有什么不同?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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