Tech
Forums
Jobs
Books
Events
Videos
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
2
Answers
MVC _layout file
Abhishek Ghosh
7y
217
1
Reply
I see the same thought everywhere but can't understand why it is so. Please can anyone help me understand.
In ASP.NET MVC, pay a lot of attention to keeping the layout file as thin as possible. This means that
you should avoid referencing from the layout file CSS and script files that are referenced by all pages based on the layout
. As developers, we certainly find it easier and quicker to reference resources used by most pages right from the layout file.
But that only produces extra traffic and extra latency.
Post
Reset
Cancel
Answers (
2
)
Next Recommended Forum
upload excel sheet files
Can't store big amount in Decimal(18,2) in DB.