I send an URL through an email to access a form with the parameter name "email". I try to access the email parameter inside the razor page.
This is what I pass as URL:
https://localhost:44339/Home/LecturerRegister?email=pasindu@gmail.com'
Then I access the email parameter by using ViewContext.RouteData.Values["email"]
<input type="email" required class="form-control" name="Email" value="@(ViewContext.RouteData.Values["email"])">
But I can't access the parameter value by this method. It's return nothing.