some of the examples on the net are from previous releases and things have changed; one that I came across was the RenderSection method which can be used in layout (master) files
@RenderSection("Header", optional:true)will throw an exception
The best overload for 'RenderSection' does not have a parameter named 'optional'the newer syntax for rendering an optional section appears to be
@RenderSection("Header", false)
1 comment:
The parameter name has been renamed to required actually =P
Post a Comment