I have a problem with partial view in MVC3 Razor. When I normally render partial view (with Html.RenderAction) jQuery works but when I load view, in a specific div, with ajax.actionlink jQuery for that partial view doesn't work. jQuery code is in my layout page.
Anyone knows what is the problem?
html is in partial view and script is in layout page.
when i load partial view with @{Html.RenderAction("action", "Controler"); }
jquery works but when i load it with:
@Ajax.ActionLink("name", "action", "controler", new AjaxOptions
{
OnComplete = "",
InsertionMode = InsertionMode.Replace,
UpdateTargetId = "ModeliSadrzaj"
})
it dosent work