[ASP.NET] Trying to understand the [HttpGet] and [HttpPost] tags
I understand that the tag is used to provide precedence to one action method over another where same URL is matched.
However, I notice that tagging a method with [Http..] invalidates access via normal <a href> links.
For example, this would NOT work
Whereas these two would work:
In this case, I am wondering if it is still good practice to leave methods untagged so that they can be called via <a href> buttons? Or could this pose any security issues?
However, I notice that tagging a method with [Http..] invalidates access via normal <a href> links.
For example, this would NOT work
Whereas these two would work:
In this case, I am wondering if it is still good practice to leave methods untagged so that they can be called via <a href> buttons? Or could this pose any security issues?


