I\'m using MVC3 and I wanted to use a partial view to create dynamic DOM elements. This is my current partial view:
@model MVCApp.ViewModels.TitlesViewModel <
Here is what you need to do.
id="label_@Model.Id"
Underscore(_) is required.For me passing id without Underscore made an issue. Happy conding.