0

I know this is kind of a noob question but I have been given a project where I am not allowed to use scaffolding. I didnt auto generate this code but the form is being auto generated by this code.

<div class="row">
            @Html.LabelFor(model => model.FirstName, "First Name")
            @Html.TextBoxFor(model => model.FirstName)
            @Html.ValidationMessageFor(model => model.FirstName)
        </div>
        <div class="row">
            @Html.LabelFor(model => model.LastName, "Last Name")
            @Html.TextBoxFor(model => model.LastName)
        </div>
        <div class="row">
            @Html.LabelFor(model => model.Telephone, "Telephone")
            @Html.TextBoxFor(model => model.Telephone)
        </div>
2
Contributors
2
Replies
12
Views
3 Years
Discussion Span
Last Post by PoorRogue
0

I appologize for the noob post again. I do believe this counts as using ASP.net scaffolding and have changed my source code.

Thank you.

0

Scaffolding is using the development environment to generate an initial layout which you can then customize. The code example you provided uses helper functions to generate the HTML code for the page. If the activity was to hand code using only HTML then the use of helper functions might not have been appropriate. If the objective was not to auto-generate the page using the developer tools scaffolding templates then by hand coding with the helper functions you did not "scaffold" the page.

Hope this helps to clarify.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.