In the sample code below, I have ajax action-link sending out a GET request. I want to send the value of Message text-box as query string for the request. I know this can be done with ajax-forms. But I was wondering if there's anything I can put in the place of XXXXX in the code below to achieve this.
<div>@Html.TextBoxFor(m => m.Message)</div>
<div>
@Ajax.ActionLink("Click here for ajax call", "AjaxPartial",
new { message = XXXXX },
new AjaxOptions() {
UpdateTargetId = "ajaxLoadedSection",
InsertionMode = InsertionMode.Replace,
HttpMethod = "Get",
})
</div>
<div id="ajaxLoadedSection"></div>