Created
December 1, 2011 22:54
-
-
Save PilotBob/1420498 to your computer and use it in GitHub Desktop.
Razor parsing error
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@if (Model.Property.AddressBookMain != null) { | |
@Html.Partial("_address", Model.Property.AddressBookMain) | |
} | |
@if (Model.Property.AddressBookMail != null) { | |
@Html.Partial("_address", Model.Property.AddressBookMail) | |
} | |
@if (Model.Property.AddressBookBill != null) { | |
@Html.Partial("_address", Model.Property.AddressBookBill) | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I get a parsing error on this. I've tried several things and can't seem to get it right.
Parser Error Message: Unexpected "if" keyword after "@" character. Once inside code, you do not need to prefix constructs like "if" with "@".