forum

Home / DeveloperSection / Forums / Password field in C#

Password field in C#

Mark Devid 4181 28-Jan-2014

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">
    @Html.EditorFor(model => model.Password)
    @Html.ValidationMessageFor(model => model.Password)
</div>
I want this field as hidden but i don't know how. Please help.
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


Updated on 29-Jan-2014

Can you answer this question?


Answer

1 Answers

Liked By