boutique replica bags up ideas

the best replique rolex and prices here.

julia highlight 99j hair color 10a quality straight human hair lace front wigs 8 - 24 inches pre plucked hairline 13x4 inches lace front brazilian wig onlinefor sale

ASP.NET MVC: Embed variable inside the string or URL in Razor View

Updated on     Kisan Patel

To write the variable data inside the string or URL, we wrap the variable with bracket.

@{string filename = "image"}
<img src="https://www.dotnetfunda.com/images/@(fileName).jpg" />

Notice that the variable filename is wrapped with “(” and “)”, if we do not do that Razor doesn’t understand
fileName as a variable and throws error.

OR

To render a variable within a string, you could use string.Format:

@{ var someVariable = "world"; }
@string.Format("<div>hello {0}</div>", someVariable)

ASP.NET MVC

Leave a Reply