views:

16

answers:

1

at the moment I have this:

in the ViewModel:

[MyCustom(Foo = 23)]
public int CountryId { get; set; }

in the Editor template:

<%= Html.TextBox("", Model) %>

how can I get the value (Foo=23) from my custom attribute (MyCustom) into the editor template ?

+1  A: 

Here's a blog post that you might find useful.

Darin Dimitrov