I've run into another Ajax problem in ASP.NET MVC I have the following Ajax.ActionLink that successfully retrieves the desired data. The problem is, instead of placing the results into the
element like Ajax is intended for, it instead reloads the web page and gives the data result at the top of an otherwise blank web page.
I'm trying to figure out why it's not placing the results in the div tag. I'm not currently using a partial view, but I've seen it done with and without a partial view before.
What I have tried:
@Ajax.ActionLink("LOCUS", "Get", "api/CompRounds",
new { Param1 = 1, Param1 = "dat1" },
new AjaxOptions
{
HttpMethod = "GET",
UpdateTargetId = "divCompRounds",
InsertionMode = InsertionMode.Replace
}, new { style = "margin-right:10px", @class = "btn btn-success" })