Regions In ASP.NET Views?
问题 I am making an ASP.NET MVC application with the razor engine. And I was wondering if it's possible to use Regions in a view. something like: #region blabla <p>@Model.Name</p> <p>...</p> #endregion This does not work. Is there an alternative? 回答1: If you download Web essential 2013 you can use regions both in your cshtml and javascript files. Like this (thanks to @dotnetN00b for the sample in the comments section): <!-- #region Test --> code here <!-- #endregion --> 回答2: Select the part which