Home What is "#" in Razor
Reply: 0

What is "#" in Razor

user420
1#
user420 Published in June 20, 2018, 1:30 am

I am looking at a .cshtml file and I see a syntax like this:

<span>
 #if(data.PersonImage){# <img src  
</span>

I know @ is for writing C# code, I also looked at this guide below but still couldn't find what is # doing?

https://haacked.com/archive/2011/01/06/razor-syntax-quick-reference.aspx/

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.305163 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO