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

asp.net MVC 5 - split registration over several pages. How can I still use [Required] annotations?
External component has thrown an exception after framework upgrade on server
Asp.net www redirect to non www
Bootstrap Glyphicon Popover
how to return to filled out form from other view in mvc
Edit page with a foreign key constraint fails in Asp.net MVC
MVC pass int from view to controller with a button click
PCL Attribute not seen in MVC ModelMetaDataProvider
How to a publish visual studio solution with two dependencies projects to azure?
EF Core + MVC 6 + .NET Core RC2 - EF not returning results
Can we display linq result in view without using model
EF - work with universal entity in library project, when not specified database entities
asp.net core not detecting classlibrary Model on View during runtime
Using Ajax.BeginForm helper in MVC 5 for uploading picture issue [duplicate]
Decorating class with Authorize assumes Office 365 login, instead of offering choice
how can pass the parametrized ActionResult value through ActionLink()

Categories

HOME
ssl
bootstrap-4
ssl-certificate
pyqt5
tags
styling
gluu
prometheus
addeventlistener
wikipedia-api
sweetalert
superfish
telnet
wso2ei
scale
next
textmatebundles
libpcap
realm-java
datamatrix
sax
symbolic-math
shape
text-parsing
kube-dns
ose
ollydbg
vrtk
lifecycle
pymssql
deep-copy
executorservice
xaf
msal
bezier
linechart
response
atlassian-bitbucketserver
logicblox
stateful
syncfusion
msysgit
docker-swarm-mode
html-form
notimplementedexception
replaygain
ietf-netconf
billing
nuget-package-restore
curly-braces
turbo-c
proc
facebook-audience-network
activemodel
ios-frameworks
accounts
jca
android-popupwindow
trello.net
ctakes
egl
sqlj
uat
par
sample-data
text-alignment
crosswalk
spinach
sketching
alienvault
genexus-gam
declaration
isql
horizontalscrollview
sbrk
team-explorer-everywhere
cellular-automata
fig
notifyicon
bochs
prudentia
micro-orm
mainwindow
visual-assist
git-gui
gigaspaces
xsocket
blackberry-cascades
android-actionmode
force.com
system-tray
jquery-1.3.2
keylogger
ryz
drwatson
clipboard-pictures
eclipse-tptp
shareware

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