Friday, April 17, 2009

ASP.NET MVC HTML helpers attributes

In order to set attributes for html elements using
"Html.ActionLink(, , , )"

The attributes should be like
new { @attribute=value, ...})

an example of this would be:
new { @id=doneID, @class="invisible"})

The "doneID" is a string variable that was defined earlier in the ' ' of the page.
The @class value is just a string.



No comments:

Post a Comment