在没有发布的情况下将值从文本框传递到ASP.net MVC中的actionLink

时间:2013-07-18 16:25:52

标签: asp.net asp.net-mvc-4 actionlink html.textboxfor

我需要像“新建”页面上的内容,搜索员工的字段。搜索结果显示在模式对话框中,并且在“新建”页面上填写了用户选择员工字段。点击搜索员工弹出窗口的HTTPPost操作没有意义。

@Html.TextBoxFor(x => x.ProjectManager, 
      new { id = "employeeSearchTxt", 
            @class="input-medium search-query" })

@Html.ActionLinkNonEncoded("<i class=\"icon-search\"></i> Search Directory",
 "SearchEmployees", "EmployeeSearch",
 new { query = Model.ProjectManager},
 new { @class = "btn btn-success modal-link" })

我无法理解我应该如何将TextBox(当前)值传递给ModelLink.ProjectManager属性中的值而不是ActionLink?

由于

0 个答案:

没有答案