I have a Blazor page like this:
@PAGE
<h1>Hello, world!</h1>
<h2>The time on the server is @DateTime.Now LAT:@Request.Query["lat"] LONG:@Request.Query["long"]</h2>
I am trying to read parameters, but I get an error:
I also tried
<h2>The time on the server is @DateTime.Now LAT:@Context.Request.Query["lat"] LONG:@Context.Request.Query["long"]</h2>
and
<h2>The time on the server is @DateTime.Now LAT:@HttpContext.Current.Request.Query["lat"]
LONG:@HttpContext.Current.Request.Query["long"]</h2>
but the IDE doesn’t understand Context
/ or HttpContext.Current