Help shape the future of CMS PaaS release notes! Take this quick survey and share your feedback.
AI OnAI Off
Help shape the future of CMS PaaS release notes! Take this quick survey and share your feedback.
Since this looks like a nested class, try doing nameof @Html.TextBox(nameof(Model.Test.Example), new { @class = "form-control"})
I tried but getting the same result ->
@Html.TextBox(nameof(Model.Test.Example), Model.Test.Example, new {@class="form-control"})
The second paramter is to set initial value :)
Hi,
I want to display form via block (viewcomponent), but the form is generating textbox with contentarea & currentpage name.
e.g ->
Generates ->
TestContentArea is contentarea where block is added
How to generate name which only contains viewmodel field name like Test.Example ?