dimanche 28 juin 2015

What is the performance difference between rendering View vs rendering an HTML file in ASP.NET MVC?

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.Title thing? This is passed to _Layout from view file only?

Aucun commentaire:

Enregistrer un commentaire