Using the name/id of the text box we can get the value as shown below.. public ActionResult Index(FormCollection Form) { ViewBag.Name = Form[“txtName”];
確定! 回上一頁