这里取不了。
你可以用js给textbox加上changed事件,在那个里面找到这个<a>标签(ActionLink表示为a标签),然后修改href。

解决方案 »

  1.   

    @Html.ActionLink 是服务端代码 早在页面显示的时候html已经生成。
    看你的需求,建议你不要直接用@Html.ActionLink, 直接写一个textbox onchange event,动态生成这个连接即可
      

  2.   

    我现在换种方式@using (Html.BeginForm("k", "Search", FormMethod.Post))
    {
     <dl class="box mt5">
    @Html.DropDownList("columnType", new SelectList(new[] { "资讯"}), new { Class = "inforselect" })
    @Html.TextBox("txtSearch", "", new { @name="txtSearch",  placeholder=" 请输入关键词"})                  
    </dl>
    <input type="submit" value="查询" />
    }//
     public ActionResult k(string key)
    {
    上面的视频POST过来没有打断点key为啥没有值呢?
      

  3.   


    ActionResult (FormCollection form)
    {
           string userid=form["columnType"];}