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

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

Categories

HOME
dynamic-programming
logstash
garbage-collection
linear-programming
quickblox
fpdf
xquery
streaming
openvpn
wso2is
splunk
partitioning
installer
pywin32
rational
formio
stm32f4discovery
windows-applications
pcap
sencha-touch-2
jsgrid
core-location
zos
abstract-syntax-tree
vnc
esri
effects
text-parsing
asp.net-identity-2
reformatting
jtapi
html-select
haxm
deep-copy
edit-distance
fipy
ubuntu-server
protobuf-3
symfony-process
word-embedding
projection
zfs
name-mangling
scoring
asyncsocket
orchestrate
soql
derbyjs
tryton
tastypie
ifc
mink
flattr
mit-scheme
directsound
post-increment
coldfusion-11
codeigniter-upload
ellipsis
ng-annotate
illegalstateexception
java-gstreamer
samsung-gear
wchar-t
json4s
oboe.js
kindlegen
vbo
google-swiffy
omap
textmatching
lossless-compression
office-2010
publish-actions
first-class-functions
xacml3
data-quality
youtrack-api
showcaseview
ccombobox
kmz
adlds
tempo
datadesign
12factor
symfony-2.2
headless-browser
51degrees
jscience
server.mappath
livevalidation
android-assets
nntp
retain
openfeint
xoom
maemo
gedcom
geneva-framework
clipboard-pictures
virtual-server

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