Watch the first few minutes on us! If you'd like to watch the entire video and hundreds more like it, download code samples, access offline videos and skills assessments, and use the discussion forums, log in or purchase a subscription.
In this session, we learn how to add attributes to any HTML tag that’s generated via a call to any HTML helper method that renders markup. We add class and id attributes, create anonymous objects, creating AdditionalViewData and ViewDataDictionary values, and talk about escaping reserved words in Razor using the @ symbol.
{{toc.Position}} | {{toc.Text}} |