Posted on: 4/7/2015 5:48:23 PM | Views : 807

I have a MVC5 page, in my view I have several text boxes that get their value from database. User is able to update some of them and pushes update button. As the values in text boxes comes from Database after post back it shows new value but the password is not coming from database and only empty text box shows and user can fill the text box with the new password and push update. after post-back the password text box get empty. How I can keep same value that user input in the text box?
<div> @Html.LabelFor(model => model.NewPassword) <div> @Html.EditorFor(model => model.NewPassword) @Html.ValidationMessageFor(model => model.NewPassword) </div> </div>

Go to the complete details ...