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>

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.

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.