Les Instructions conditionnelles sur Cshtml page avec Rasoir

Je n'arrive pas à obtenir ce code fonctionne. Comment puis-je obtenir le TextBoxFor à afficher sur l'écran? Rien j'essaie de travaux.

@foreach (var items in Model.Pages[0].Items){
<div class="form-group">
<label for="pageType" class="col-sm-2 control-label">Label:</label>

<div class="col-sm-10">
    @{
       string htmlOutput;
       if (items.PageItemTypeId == (int)HOD.Controllers.PageItemTypesEnum.MainTextContent)
       {
           htmlOutput = @Html.TextBoxFor(x => items.PageContent, new { @class = "form-control", @placeholder = "Content" }).ToHtmlString();
           Response.Write(htmlOutput);
       }
  <input type="hidden" id="pageTypeId" />
</div>
</div>

OriginalL'auteur dellyjm | 2014-07-21