C# - How to list out variable names and values posted to ASPX page

后端 未结 8 2309
春和景丽
春和景丽 2021-02-13 10:11

I am dynamicaly generating a HTML form that is being submitted to a .aspx webpage. How do I determine in the resulting page what variable names were submitted and what the value

8条回答
  •  孤独总比滥情好
    2021-02-13 10:22

    You should use Request.Form as a collection. Note that multi-valued parameters (a multi-select) are turned into a collection themselves. There's an example on this page.

提交回复
热议问题