I have an object called item, item has a property itemId. I am trying to build up a url that has the itemId followed by .html… so it would look like “myNiftyItem-123456.html”
@item.itemTitle-@item.itemId.html
Doesn’t work as it thinks “.html” is a property or method of itemId. How do I get that to work?
You need to make an explicit code nugget:
@item.itemTitle-@(item.itemId).html