Is there any difference between Request["xx"] vs Request.Form["xx"] ?
I’m trying to figure it out.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The former will return a value if
xxexists in theQueryString,Form,Cookies, orServerVariablescollections. It will go through each one in turn till it finds a value, at which point it will return.See the documentation on the indexer of
HttpRequest.In short, if you have a
?xx=123on the query string, and you useRequest["xx"], the string “123” will be returned, regardless of anxxkey existing in theFormcollection.