-
-
Save rytmis/998898 to your computer and use it in GitHub Desktop.
Razor weirdness
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
<h2>Create</h2> | |
@using(Html.BeginForm()){ | |
@Html.Partial("form"); | |
} |
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
<h2>Create</h2> | |
@using(Html.BeginForm()){ | |
Html.RenderPartial("form"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It works.. Thanks a lot!
I figured something like that.. But I didn't assume that razor would pick up on a simple Html.RenderPartial call within my markup .. I fully expected @ to simply start a code block..
Thanks..