When do Request.Params and Request.Form differ?

Matt Mitchell picture Matt Mitchell · Aug 8, 2008 · Viewed 24.4k times · Source

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?

Answer

Brandon Wood picture Brandon Wood · Aug 8, 2008

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