Considering both containing same static content, what is the difference between rendering a view VS a HTML file from an action in ASP.NET MVC?
Background: I have some static content such as about page which I'm rendering as ActionResult view. I can also keep them in some HTML files.
Question: Does it make any sense to port the static content from view files to HTML files? I believe it will save server from processing View engine tasks - which is the reason for port (correct me, if I'm wrong).
One more important question: How do I handle
Viewbag.Titlething? This is passed to_Layoutfrom view file only?
Aucun commentaire:
Enregistrer un commentaire