U4-1215 - Umbraco 4.10.1 - Unable to render a partial with same name as a main view

Created by Warren Buckley (Personal) 17 Nov 2012, 18:46:18 Updated by Sebastiaan Janssen 22 Dec 2012, 13:15:00

Is duplicated by: U4-1287

Hiya been playing around with 4.10.1 this evening and I am wanting to use a Partial view inside a main view/template. Not sure if this is an Umbraco issue, or a bad practise with using MVC on .NET in general.

If I create a view called '''Register.cshtml''' in '''/Views''' and then create a '''Register.cshtml''' file in '''/Views/Partials''' and use it in my view like so in the Register view I get the following error attached.

@Html.Partial("Register")

If I rename the Partial to say RegisterForm and update the Html.Partial call it all works fine. So like I say not sure if just a bad practise thing or this should be working.

1 Attachments

Comments

Priority: Normal

Type: Bug

State: Fixed

Assignee: Shannon Deminick

Difficulty: Normal

Category:

Backwards Compatible: True

Fix Submitted:

Affected versions: 4.10.0

Due in version:

Sprint:

Story Points:

Cycle: