How can I pass a textbox's value to the controller's action when I do a ActionLink?
I found the following example which passed "static" string (Veggie Sandwiches) to the action (binded to dishName). I need something similar but instead I want to pass the value from a textbox on to the view.
@Ajax.ActionLink(
"Where are my Sandwiches??????",
"GetSandwiches",
new {
dishName = "Veggie Sandwiches"},
new AjaxOptions
{
HttpMethod = "POST",
InsertionMode = InsertionMode.Replace,
UpdateTargetId = "SandwichStation"
}
)