Why does ReturnUrl return null parameter though it shows up in the adress bar?

Why does ReturnUrl return null parameter though it shows up in the adress bar?

What could be the reason for&nbsp;<strong>returnUrl</strong>&nbsp;string getting back asthe null value though it's printed in the adress bar. In he form I've created hidden input tag in order to catch URL and pass it into the ActionResult parameter :

What could be the reason for returnUrl string getting back asthe null value though it's printed in the adress bar. In he form I've created hidden input tag in order to catch URL and pass it into the ActionResult parameter :

    @using (Html.BeginForm("Login", "Account", FormMethod.Post, ))
        {
                 @Html.AntiForgeryToken()
                 <input type="hidden" value="@Url.RequestContext.HttpContext.Request.QueryString["ReturnUrl"]"/>
               <input type="submit" value="Enter" class="btn btn-primary"/>
        }

So after hitting submit button I'm redirected to the Account controller/ Login ActionResult with the ReturnUrl parameter being null

        [HttpPost]
        [ValidateAntiForgeryToken]
        public ActionResult Login(LoginModel model,string ReturnUrl)
        {

        if (ModelState.IsValid)
        {
           //some codes
                if (String.IsNullOrWhiteSpace(ReturnUrl))
                {
                    return RedirectToAction("HomeIndex", "Home");
                }
                else
                {
                    return Redirect(ReturnUrl);
                }
            }
            else
            {
                ModelState.AddModelError("UserLoginError", "Username or password is incorrect");
            }
        }
        return View(model);
    }

I've also tried to add the qerystring as a parameter inside the brackets of Beginform like this:

@using (Html.BeginForm("Login", "Account", FormMethod.Post, new { ReturnUrl = Request.QueryString["ReturnUrl"] } )) 

Didn't work either.

Angular 9 Tutorial: Learn to Build a CRUD Angular App Quickly

What's new in Bootstrap 5 and when Bootstrap 5 release date?

Brave, Chrome, Firefox, Opera or Edge: Which is Better and Faster?

How to Build Progressive Web Apps (PWA) using Angular 9

What is new features in Javascript ES2020 ECMAScript 2020

Add asp.net Identity in empty project

LIKE | COMMENT | SHARE | SUBSCRIBE Today, in this tutorial you will see the process of adding an ASP.NET Identity to the ASP.NET Web Application developed in...

List all users from asp net core identity

LIKE | COMMENT | SHARE | SUBSCRIBE In this video, i will show you How to retrieve and display all the registered application users in asp.net core using the ...

Extend IdentityUser in ASP NET Core

LIKE | COMMENT | SHARE | SUBSCRIBE In this tutorials, I will show you how to extend IdentityUser in asp.net core.. Subscribe & Stay Connected! Thank You! ♥ #...