locked
How to get the Url from where the FORM POST happened to my page RRS feed

  • Question

  • User430178104 posted

    Hi,

    In one of my requirement some one will post the data to my app with Form Post. I need to get the Url from where the Form Post happened in C#.

    Wednesday, May 23, 2018 6:21 AM

Answers

  • User-821857111 posted

    The URL of the page that a form is hosted in is not passed as part of the request, so this information is not available. You can ask whoever is hosting the form to include this information in a hidden field. Then you can access it via the Request.Form collection.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, May 23, 2018 7:46 AM