ASP.NET Core tips
Get query string value on a Razor page (*.cshtml)
@{var queryStringValue = Context.Request.Query["queryStringName"];}
Get route data value on a Razor page (*.cshtml)
@{var routeDataValue = Context.Request.RouteValues["routeDataKey"];}
Loading comments...