Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
AI OnAI Off
Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
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 ->
@Html.TextBoxFor(x => x.Test.Example, new { @class = "form-control" })
Generates ->
TestContentArea is contentarea where block is added
How to generate name which only contains viewmodel field name like Test.Example ?