Difference between Request.Form and Request.QueryString?

前端 未结 6 484
隐瞒了意图╮
隐瞒了意图╮ 2021-02-02 17:02

Can some tell me the exact difference between Request.Form and Request.QueryString?

I know one difference, like

If th

6条回答
  •  深忆病人
    2021-02-02 17:21

    Request.Form()

    • The Form collection retrieves the values of form elements posted to the HTTP request body, Only those elements and value which exist in your Form.

    Request.QueryString()

    • The QueryString collection retrieves the values of the variables in the HTTP query string, Here you can append any of your custom variable and value which event dose not exist in your Form.

提交回复
热议问题