You can get query parameters by injecting IHttpContextAccessor into the Razor page . And get the value of any parameter with Request. Query object. Note that there maybe several query parameters with the same name therefore the values are stored in a collection.1 Ara 2015
Read moreHow can get query string value in MVC controller?
Start Visual Studio 2010 then Start a new MVC 3 (with Razor View Engine). Add a new Controller, the project is named “UseQueryString”. Add a View to the Index() action method.
Read moreHow do I get QueryString in .NET core?
ASP.NET Core – Getting query string values
Read more