ProgrammerGuide.Net | Step by Step Programmer Guide

Naming Conventions in Creating Partial Views in ASP.NET MVC | ASP.NET MVC Programmer Guide

When creating partial views, it is important to follow the prescribed naming convention for the sake of consistency. In the naming convention for partial views, the file name begins with an underscore and is suffixed by Partial. For example, the partial view for ArtistInfo would be named _ArtistInfoPartial.cshtml.

While the underscore has no technical ramifications in the MVC Framework, it does have significance in  ASP.NET WebPages—where the convention originated. The Partial suffix tells other developers that the file is intended to function as a partial view.

Please click here for related products on Amazon!


Add comment

Want to Check Celebrities News?