0

I am trying to use services of a 3rd party REST API, where they push the parameters onto my URL. Something like:

http://domainname/location.aspx?information=MM/DD/YY HH:MM:SS AM/PM

where domainname is my website, while location.aspx is my page which will read the parameters being pushed. How do I grab the "information" parameter in ASP.NET Web Forms C#? Thanks.

Dev Dreamer
  • 289
  • 1
  • 9
  • 18

2 Answers2

1
string information = Request["information"];
Matthew Abbott
  • 60,571
  • 9
  • 104
  • 129
1
string information = Request.QueryString["information"]

there is also jquery/javascript way of doing it. refer to this post

Community
  • 1
  • 1
patel.milanb
  • 5,822
  • 15
  • 56
  • 92