C# ASP.NET MVC Forms Creating a Basic Form Using Strongly Typed HTML Helpers

Kyle Westendorf
Kyle Westendorf
6,564 Points

Is there a problem with this quiz?

It asks to add a model directive, so I have with @model IssueReporter.Models.Issue

It won't let me move passed task 1

Report.cshtml
@model IssueReporter.Models.Issue 

@{
    ViewBag.Title = "Report an Issue";
}

<h2>@ViewBag.Title</h2>

@using (Html.BeginForm())
{
    <div>
        @Html.Label("Name")
        @Html.TextBox("Name")
    </div>

    <div>
        @Html.Label("Email")
        @Html.TextBox("Email")
    </div>

    <div>
        @Html.Label("DepartmentId")
        @Html.TextBox("DepartmentId")
    </div>

    <div>
        @Html.Label("Severity")
        @Html.TextBox("Severity")
    </div>

    <div>
        @Html.Label("Reproducible")
        @Html.TextBox("Reproducible")
    </div>

    <div>
        @Html.Label("DescriptionOfProblem")
        @Html.TextArea("DescriptionOfProblem")
    </div>

    <button type="submit">Save</button>
}

1 Answer

Steven Parker
Steven Parker
202,065 Points

Your code passes task 1 for me. I copy/pasted it directly into the challenge.

If you're still having trouble with this, try restarting your browser.