I am starting up with mvc and designing a simple login procedure. I have view with login screen with two inputs username and password. but apparently not able to get how can i pass the values of inputs from my view to controller i am using razor. here are my snippets.
<table>
<tr>
<td>
UserName:
</td>
<td>
@Html.TextBox("userName")
</td>
</tr>
<tr>
<td>
Password
</td>
<td>
@Html.Password("Password")
</td>
</tr>
<tr>
<td colspan="2">
@Html.ActionLink("login", "SignIn")
</td>
</tr>
</table>
and my controller looks like this.( i am able to redirect to controller using action link just fine.just about passing values.)
public ActionResult SignIn()
{
//string userName = Request["userName"];
return View("Home");
}