Close
AlgoliaLogoLight
Close full mode
logo

ASP.NET Core tips

Git RepositoryEdit on Github

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...