ASP.NET MVC - what is this in VB.NET?
Html.TextBox( "name", null, new { @class = "css-class" } );
From stackoverflow
-
Almost exact duplicate: http://stackoverflow.com/questions/407586/what-is-the-vb-net-code-equivelant-for-c-anonymous-type-code
This is called Anonymous Types and the VB equivalent is :
New With {.Name = "value"}
EdenMachine : Thanks, I was missing the "." in my code - I couldn't for the life of me remember that.
0 comments:
Post a Comment