我应该如何获取 CheckPN View 中 textbox的值,并把值传递到 Create Controller 中去,实例如下:
Controller:
public ActionResult CheckPN(string checkPN = "")
{
return View();
}
public ActionResult Create(string SearchString ="")
{
PNDropList(SearchString);
return View();
}
View:
@model IEnumerable
@{
ViewBag.Title = "CheckPN";
}
《p》
@using (Html.BeginForm("SearchString"))
{
《p》@Html.TextBox("SearchString")《br /》
@Html.ActionLink("确认", "Create",“传递的值” )《/p》
}
/p》