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