This code will not work without the @ in front of the <li> tag.
Code:
@For Each A In ViewBag.stuff (where stuff is a list of strings)
@<li>@A</li>
Next
Is there an easy rule to remember to know when the @ is required to transition back to html? In the Razor section of Chapter 3 it indicates @ is required to transition from markup to code, and sometimes back, but I never found any examples or explanations about when @ is required for the transition back to markup.
Thanks.
Best Regards,
Alan