This article is a mirror article of machine translation, please click here to jump to the original article.

View: 18002|Reply: 2

[Source] ASP.NET Core redirect a tag parameter carries the current URL

[Copy link]
Posted on 2022-3-21 19:15:49 | | | |
Requirements: When the user clicks on a certain function, the function needs to be logged in before it can be used, at this time, after jumping to the login page, when the user logs in successfully, we hope to be able to jump back to the original function page.

Implementing this feature in the previous .NET Framework (ASP.NET MVC), add the following code to the view page A tab:

How does this work in ASP.NET Core MVC? Let's take a look at the implementation renderings first:



The view view code is as follows:


For more use of the anchor marker helper ASP.NET Core, please refer to the following:

The hyperlink login is visible.
The hyperlink login is visible.





Previous:Windows Routing Table sets the specified egress IP for different networks
Next:Spring Boot looks at all registered BEANs
Posted on 2022-3-21 22:12:12 |
Learn to learn
Posted on 2022-3-26 22:28:35 |
What's the matter MB, coming to download something is also restricted
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com