How can I pass a Textboxes value to my Ajax.ActionLink?

后端 未结 4 750
感情败类
感情败类 2021-01-18 12:21

In my ASP.NET MVC application I want a user to add a value into a textbox and then press my Ajax.ActionLink. I want to do something like this:

Ajax.ActionLink(\"Go\

4条回答
  •  隐瞒了意图╮
    2021-01-18 12:36

    replace $.get(action, data); with $("#yourTargetId").load(action, data); you get a ajax as in the following:

    
    
    
    

提交回复
热议问题