Not able to display Request.Form("xxx") although it's existing. RRS feed

  • Question

  • User944339287 posted

    Hi guys.. Google Chrome - Developer Tools - [Network] is showing data returned properly.

    But nothing to display at my page. Any idea?

    My two methods to display Form Data

    For Each key As String In Request.Form.AllKeys
       Response.Write("<span>" & Request.Form(key) & "</span><br>")

    Friday, November 29, 2019 5:00 AM

All replies

  • User-1780421697 posted

    for example if request is http://localhost/ipay88-testing.aspx?Status=test then it will get the data in code behind, you should pass some query string parameter to get it. by the way you can use 

    string status = Request.QueryString["Status"];

    Easy way to view result is you need to debug your method like if you catch request parameter in Page_Load then you need to debug it in visual studio that will give you exact issue.

    Friday, November 29, 2019 6:47 AM
  • User944339287 posted

    Hi, thanks for your reply.

    I'm not able to use Request.QuesryString("Status") as data is passing from another website. 

    Friday, November 29, 2019 6:54 AM
  • User1535942433 posted

    Hi kengkit,

    According to your posted image, I found you have sent the request to the two pages, one is classic asp and another one is asp.net page.

    Could you please tell me the codes you have used is in the classic asp page or the asp.net code-behind?  

    Best regards,

    Yijing Sun

    Friday, November 29, 2019 9:42 AM
  • User-1780421697 posted

    As long as you page is called from any where and if it has Status query string parameter, you can access it by using Request.QuesryString["Status"]. like id i call your page with parameter 


    then you will get the status parameter by request.QueryString["status"] , by the way its [GET type] request.

    Friday, November 29, 2019 9:45 AM
  • User753101303 posted


    Is it just me ? It seems all data are passed as http headers rather than as form fields (inside the request body) ???

    What if you try 

    Friday, November 29, 2019 9:54 AM