maztt
maztt

Reputation: 12294

razor dynamic name of the class

<span class="abc">abc</span>

I want to have @postid as well in there so that the name of the class is generated as abc123. How can i do that?

Upvotes: 1

Views: 525

Answers (1)

Carles Company
Carles Company

Reputation: 7216

You can try this:

<span class="abc@(postid)">abc</span>

Upvotes: 4

Related Questions