Created
June 14, 2013 14:29
-
-
Save jesperbjensen/5782264 to your computer and use it in GitHub Desktop.
Alternative HtmlHelper Syntax
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
@using (Html.BeginRouteForm(Route.Stuff, FormMethod.Get, new {@class = "myForm", data_hello = "this"})) | |
{ | |
... | |
} | |
@using (Html.Form.Method(FormMethod.Get).Src(Route.Stuff).Class("myForm").Data_Hello("this")) | |
{ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Or maybe just make the attributes using text: