In an existing code, I already had this in my view:
<p class="label">@Html.ActionLink("Update Your Email", "UpdateEmail", "Settings")<br/>
And I added a simple text box there so they can type their password. Please note that I DO NOT want a submit button or anything more, just a text box to type their password.
<input type="password" name="userpassword"/>
And in the controller
for the action in that ActionLink
I currently from old code I have this:
public ActionResult UpdateEmail()
{
// I just want to have the password they typed in here to use it.
// some pre-existing stuff
}
How can I do this? When I come to UpdateEmail()
I want to know what did they type in the textbox
? Sorry I am noob and stupid question.