mvc, view,


How to convert above to @html.begin()?
in razor/c#/
Who is Participating?

Improve company productivity with a Business Account.Sign Up

Ioannis ParaskevopoulosConnect With a Mentor Commented:
@using (Html.BeginForm("YourActionName", "YourControllerName", FormMethod.Post, new { enctype = "multipart/form-data" }))
        @Html.EditorFor(m => m.Phone)
        @Html.EditorFor(m => m.SSN)
        <input type="submit" value="Submit" />

Open in new window

Just replace YourActionName and YourControllerName with the appropriate values.

StephanLead Software EngineerCommented:
How is your route for the form action?

Open in new window

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.