I have some partial views in my controller. The problem is that users can visualize my partial views if they put in url: (www.mydomain.com/mycontroller/mypartialview). How can I deny direct access… and allow work with partial views only from base view?
Thank’s!
add [ChildActionOnly] .. like this :