title: ASP.NET MVC controller action restricted to a specific view
body: <p>Is there a way to restrict a controller action to be accessible only from a specific view? I have a Details page for a queried entity in my database and basically by a button and a simple JS confirmation prompt I would like to change few properties of this object and save it back to the database. I've developed a controller action method which does the job but I have no idea how to restrict access to it, so users cannot (un)intentionally modify entities by passing a specific url in the browser. I would like the action to be only accessible on this specific Details page, by pressing the designated button.
  I tried using <code>[ChildActionOnly]</code> but it's only accessible from another action method, and not a view.</p>
  
  <p>Thank you for your help.</p>