简体   繁体   中英

What's the difference between <a asp-page="linkhere"> and <a href="linkhere"> in ASP.NET Core?

This is a fundamental question:

What's the real difference between <a asp-area="" asp-page="/linkhere">test</a> and classic <a href="/linkhere">test</a> in ASP.NET Core?

The end result appears to be the same always (it's an href attribute always in the end)

Does it somehow protect against clickjacking or something similar behind the scenes??

In other words, does using asp-page bring any security advantages?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM