I'd like to add a razor model variable into a resource file string. I've tried the following but the variable is rendered as a literal:
attempt 1:
"There is a variable @Model.here"
attempt 2:
"There is a variable @(Model.here)"
In the code, it is referenced like this:
@MyManager.GetString("resourcefilevariable")
Is there some way to do this?
@{and}) then another@is simply a syntactic error because you are already inside Razor. Then you need to use string.Format to format your string. On the other hand, if you inside HTML tag,@(variable)will work.