[razor] : if

Scrivo questo post perchè non mi rimane proprio in mente la sintassi del costruttore if utilizzata dal Razor view Engine

esempio 1 : per includere nella condizione dei tag html
@if (foo) {   <text>Plain Text</text>  }

esempio 2: quando dovete includere solo testo

<tr
@if (foo) { @:style='background-color:Yellow' }
>

posted @ venerdì 8 luglio 2011 13:01

Print

Comments on this entry:

# mont blanc meisterstuck ballpoint pen

Left by meisterstuck ballpoint pen at 04/03/2012 05:13
Gravatar
The myth regarding the “Hope Diamond” to be sank into the ocean with Titanic is not correct. A careful study shows that the wearer of the Hope Diamond, Eva Lyn Walsh McLean had cancelled her trip at the last moment.

# re: [razor] : if

Left by jusen at 15/03/2012 06:45
Gravatar
Just about every cocktail dresses bride wants a place to begin, so use this manual to wedding dresses discover essentially the most formal stunning mom of the bride dresses to your most mother guest dresses prominent wedding ceremony guest.
Comments have been closed on this topic.
«novembre»
domlunmarmergiovensab
272829303112
3456789
10111213141516
17181920212223
24252627282930
1234567