
It is similar to if, we just need to write switch statement. Notice how beautifully we are able to mix the C# and HTML code.
@switch (fileName)Views: 26469 | Post Order: 14
{
case "itfunda":
<p>itfunda logo</p>
break;
case "dotnetfunda":
<p>dotnetfunda logo</p>
break;
default :
<p>no logo</p>
break;
}