@model WebApplication1.Models.user @{ ViewBag.Title = "Account managment"; }

Account managment

View and Edit account details

@using (Html.BeginForm()) { @Html.AntiForgeryToken()

user


@Html.ValidationSummary(true, "", new { @class = "text-danger" }) @Html.HiddenFor(model => model.ID)
@Html.LabelFor(model => model.usename, htmlAttributes: new { @class = "control-label col-md-2" })
@Html.EditorFor(model => model.usename, new { htmlAttributes = new { @class = "form-control", @readonly = "readonly" } }) @Html.ValidationMessageFor(model => model.usename, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.password, htmlAttributes: new { @class = "control-label col-md-2" })
@Html.EditorFor(model => model.password, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => model.password, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.displayname, htmlAttributes: new { @class = "control-label col-md-2" })
@Html.EditorFor(model => model.displayname, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => model.displayname, "", new { @class = "text-danger" })

@Html.ActionLink("back to account managment", "index", null, new { @class = "btn btn-outline-dark" })
}