@{
ViewBag.Title = "Access TextBox and TextboxFor Value From View To Controller In Asp.net MVC";
}
@using (Html.BeginForm("Index", "Home"))
{
<b>Acess Textbox </b>
@Html.TextBox("Name","")
<br />
<input type="submit" value="Submit TextBox" />
}
[HttpPost]
public ActionResult Index(int id = 0)
{
string name = Request.Form["Name"].ToString();
return View();
}