Razor: Creating a view from a nested layout doesn't auto create the sections
I am happily converting to Razor. However, one irritating thing is that when creating a view, it doesn't add the sections for the selected layout (u2bka masterpages...). Is this to be amended for RTM or is this it?? Either way, where (or to whom) do I whinge? It is an absolute pain putting in all the sections. PS: u2bka: Used to be known as.
The Add View dialog for the Razor view engine does not currently support this feature (and probably won't for MVC 3 RTM either). This is because of some fundamental differences between Aspx and Razor. Aspx is declarative which means it's a lot easier to parse in these scenarios. Razor is imperative which means it's a lot more difficult to detect all cases without actually running the page code (which we cannot do because it might have side effects). But we could consider some heuristics for MVC 4.
I am not too sure in your case but I would strongly suggest you read Andrew's blog post on Razor's nested layouts. It really explains things. http://aboutcode.net/2010/11/08/nested-layout-pages-in-razor.html
RedirectToAction redirecting to wrong place
Persistence-Ignorant ASP.NET Identity: Login system does not function but no errors
How can I use an #HtmlHelper inside a custom #HtmlHelper?
ModelState.IsValid - but not on the bound model
ASP.NET MVC Upload file
Bootstrap 3 long modal open fix postion
Sitefinity 9.2 MVC 5 Feather and Ninject - Error loading module, another module with the same name has already been loaded
HTML Changes Not Being Shown in Build for Visual Studio 2017
Replace string in Razor View
MVC5 : Retrieving newly created record and repopulating the partial view with newly created record
MVC give error Assembly are not loaded
identify which button is being clicked in mvc 5
Whitelisted azure outbound ip addresses not connecting to smtp server
Asp.net MVC Token Based Autnetication and Authorization
Asp.Net MVC Helper: create a global helper for loading view with or without layout
Single Sign On - Asp.Net Identity not working