Sunday, 8 September 2013

Adding a class torazor @html.DisplayFor

Adding a class torazor @html.DisplayFor

I want to set a new class for this part of my code, but it doesn't work
correctly
@Html.DisplayFor(model => model.melk.Code, new { @class = "myClass" } )
Can anyone tell me where am I wrong?

No comments:

Post a Comment