I am using entity framework and .net 4.5 with c#5 for first time from last 2-3 days and i want to display a input type as password field but don't know how to do it
<div class="editor-field">I want this field as hidden but i don't know how. Please help.
@Html.EditorFor(model => model.Password)
@Html.ValidationMessageFor(model => model.Password)
</div>
And also i want to check this field with
<div class="editor-label">
Re-Password
</div>
<div class="editor-field">
<input id="repwd" type="password" name="repwd"/>
</div>
to confirm if the password is correct
Pravesh Singh
29-Jan-2014Use @Html.PasswordFor instead of @Html.EditorFor and for comparing two password your required to change model as show below