blazor reading paramater from GET string
I have a blazor page
<h1>Hello, world!</h1>
<h2>The time on the server is @DateTime.Now LAT:@Request.Query[“lat”] LONG:@Request.Query[“long”]</h2>
where I am trying to read parameters but the error I get is
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 doesnt understand Context/ or HttpContext.Current
I have a blazor page @PAGE
<h1>Hello, world!</h1>
<h2>The time on the server is @DateTime.Now LAT:@Request.Query[“lat”] LONG:@Request.Query[“long”]</h2>where I am trying to read parameters but the error I get is 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 doesnt understand Context/ or HttpContext.Current Read More