Reporter | Alexander I. Zaytsev (hazzik) |
---|---|
Created | Jan 27, 2012 11:34:03 AM |
Updated | Jan 27, 2012 6:25:38 PM |
Priority | Normal |
Type | Bug |
Fix versions | Next |
State | Submitted |
Assignee | Slava Trenogin (derigel) |
Subsystem | Inplace Refactorings |
Affected versions | 6.1.1 |
Fixed in build | No Fixed in build |
I have following code snippet
I want to inline htmlAttributes
And I get incorrect code
@{ var htmlAttributes = ViewData.ModelMetadata.IsReadOnly ? new {@readonly = "readonly"} : new {}; } @Html.TextBoxFor(x => x, htmlAttributes)
I want to inline htmlAttributes
And I get incorrect code
@Html.TextBoxFor(x => x, ViewData.ModelMetadata.IsReadOnly ? new {Write(readonly); = "readonly"} : new {})