user1405195
user1405195

Reputation: 1681

How to concatenate string to razor model item in view

Can anybody tell me how to do this?

@integer.IntegerValue + " , ";

I hope it's obvious what I want to do. I'm sure it's painfully simple.

Upvotes: 0

Views: 593

Answers (1)

CodingIntrigue
CodingIntrigue

Reputation: 78525

Wrap it in parenthesis:

@(integer.IntegerValue + " , ")

Upvotes: 3

Related Questions