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>

Dani AI

Generated

Short answer: using Razor HTML helpers (LabelFor / TextBoxFor / ValidationMessageFor) is not the same as "scaffolding." Scaffolding means a tool/process generated files for you (controllers, views, model classes) from templates; HTML helpers are just runtime methods that emit HTML and are considered hand-written view code even though they reduce typing.

If the project rule really forbids any generator output, clarify what the team means by "no scaffolding" — do they mean "don't use Visual Studio/EF generators" or "no helper methods either"? If the former you do not need to remove Html helpers. If the latter, convert to plain inputs and bind by name. Example of a manual bindable form (Razor view):

<form method="post">
  <input type="text" name="FirstName" value="@Model.FirstName" />
  <input type="text" name="LastName" value="@Model.LastName" />
  <button type="submit">Save</button>
</form>

Quick checks to tell whether something was scaffolded: look for generator comments or headers in the file, search commit history for "Add Controller" / "Scaffold", inspect project for T4 templates or files created by EF reverse-engineering. If a controller or model was generated by a scaffolder you may need to refactor those files; if only the view was hand-written using helpers, there is nothing generated to "undo."

is on target: helpers are not scaffolding. only needs to change code if the project owner truly disallows helper usage or any generated artifacts. When in doubt, ask for the precise restriction so changes match what the team expects.

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.