User475983607 posted
As recommended in many of your recent posts, learn .NET Core fundamentals. Any beginning level tutorial will have this information or reading the .NET Core fundamentals documentation.
https://docs.microsoft.com/en-us/aspnet/core/fundamentals/?view=aspnetcore-5.0&tabs=windows
kalvakrishna
var response = Request["g-recaptcha-response"];
Request["g-recaptcha-response"] has been replaced by model binding but the syntax still works.
https://docs.microsoft.com/en-us/aspnet/core/mvc/models/model-binding?view=aspnetcore-5.0
HttpContext.Request.Form["key"]
kalvakrishna
string activationProtocol = Request.Url.Scheme;
HttpContext.Request.Scheme
kalvakrishna
model.ActivationUrl = Url.Action(String.Empty, "Activate", routeValues: null, protocol: activationProtocol);
Works the same in .NET 5 (Core).
kalvakrishna
foreach (String key in Session.Keys)
{
_logger.Debug(String.Format("Session Key={0}, Value={1} ", key, Session[key]));
}
Accessing Session is cover extensively in your recent post(s).
https://forums.asp.net/t/2175507.aspx