asp.net mvc 2 - VB.NET syntax for EditorFor template? -


I tried to create my own templateed helpers, but I got stuck on TextBoxFor syntax. C # has this in:

  <% = Html.TextBoxFor (model => model)%>  

And I do not understand (or Google) - How to write it?

This standard looks similar to the C # long syntax, so the translation will be:

< Pre> & lt;% = Html.TextBoxFor (function (model) model)% & gt;

Actually you have HTML for 1 function with 1 parameter. Giving textbox This function does nothing, it just backs the caller.

This will require VB 10, which is found in Visual Studio 2010.


Comments