asp.net-mvc


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

Related Links

An exception of type 'System.NullReferenceException' occurred in App_Web_jwfiir5n.dll but was not handled in user code
What should be written inside the connection string when migrating SQL db to Azure with VS2015?
Url delimiter with “-” MVC Routes
FoolProof MVC GreaterThan not working with time
Microsoft Word Online Edition in asp.net mvc web application
MVC Areas & Shared Layouts
automapper with pagedlist always return one page
Adding validation data attributes to custom input
Drop down toggle is not working in pagination
How can I destroy session in Asp.net MVC 5?
Include a sorted bundle to another bundle
ASP.NET MVC - The entity type IdentityRole is not part of the model for the current context
ASP.NET Bootstrap table padding between columns not working
MVC - ADFS Authentication - ADFS redirects to localhost
Error: “The resource cannot be found” when trying to pass in an empty object to View
MVC Model Navigation Property

Categories

HOME
math
html5-canvas
opencv
graph
groovy
linear-programming
libreoffice
build.gradle
classloader
zebble
sqlconnection
union
jscrollpane
jquery-jtable
lighttpd
condor
phpbb3
jmespath
eigen3
flow
garmin
code-analysis
deadbolt
line-breaks
easendmail
symbolic-math
dsl
spring-batch-admin
mediacodec
flatbuffers
reformatting
kprobe
whatsapi
kubernetes-go-client
charts.js
nest-thermostat
swipe
kube-dns
ollydbg
spring-data-cassandra
bits
jetty-9
uistoryboardsegue
worldpay
essbase
mediawiki-api
free-diameter
sdcc
qmenubar
zuul
vega-lite
sharpziplib
okular
replaygain
biological-neural-network
lcov
sizing
blocking
django-errors
tfs2008
logstash-jdbc
post-increment
insert-update
4d
nuitka
uploadify
webmail
jca
vimeo-ios
google-api-ruby-client
asp.net-webpages
strace
fab
session-replication
equinox
devenv
pencilblue
gitattributes
first-class-functions
notifydatasetchanged
nhunspell
data-quality
b2b
android-c2dm
android-lru-cache
llblgenpro
transport-stream
glulookat
globbing
arbtt
src
datadesign
cloud-hosting
51degrees
xml-dtd
jetspeed2
high-traffic
gumstix
msn-messenger
project-settings
crc-cards
versant-vod
docking
graceful-degradation

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App