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

后端 未结 8 2308
春和景丽
春和景丽 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:37

    In the declaration of the .ASPX add Trace='True'

    <%@ Page Language="CS" Trace="True" AutoEventWireup="false" CodeFile="Default.aspx.cs" Inherits="_Default" %>
    

    You will be able to see the Forms data, Session, Application data etc.

提交回复
热议问题