I have a page, that should update a “process” kinda window when an action is aplied. Kinda like a visible log. Click “start upload” and the div tag underneath will be updated with information.
The problem is, that when i click the “start upload” link it just jumps to that page and don’t do a ajax call and update the div.
Controller
public ActionResult ProcessWindow(decimal id)
{
IMG_SETTINGS_FOLDERS img_settings_folders = db.IMG_SETTINGS_FOLDERS.
Single(i => i.SETTINGS_FOLDER_ID == id);
return PartialView("ProcessWindow", img_settings_folders);
}
View
@Ajax.ActionLink("Start upload", "ProcessWindow",
new { id = Model.SETTINGS_FOLDER_ID },
new AjaxOptions { UpdateTargetId = "processWindowssssss" })
<div id="processWindowssssss"></div>
Solved…
When you use unobtrusive ajax, you need to include “jquery.unobtrusive-ajax.min.js”…
If people who write toturials were to read this, please extend your “js” include info to contain this information too.
Answer found from Brad Wilson on Unobtrusive Ajax. http://bradwilson.typepad.com/blog/2010/10/mvc3-unobtrusive-ajax.html
\T