Tuesday, August 16, 2011

when to use @ after @

Don't use the at symbol to declare Razor markup after you have already used it...

@if (Something... something...

{

   if (
Something... something...

   {

 
 

UNLESS you have made your way out of Razor markup and need to make your way back into it.

@if (Something... something...

{

   <p><text>Hello World</text></p>

   @if (
Something... something...

   {

No comments:

Post a Comment