Hi,
please see below code , when clickon this link why it replaces entire page ratherthan target id "idDev".
I tried latest script also, but still same issue.It replace entire page with layout page content also.
can anybody suggests.
@{
ViewBag.Title = "TestAjax";
Layout = "~/Views/Shared/_Layout.cshtml";
}
TestAjax
@Ajax.ActionLink("Click Ajax", "TestAjaxLink", new AjaxOptions {
UpdateTargetId = "idDev",
InsertionMode = InsertionMode.Replace
})
@ViewBag.TitleName
please see below screen shot also.
Thanks in advance.
Regards
Hemraj

Manas MohapatraRank #182 · 13.2K reputationPosted Jun 5, 2017, 9:20 PM EDT
3. Return data partial view result not view result.
Hemraj Rav31 reputationPosted Jun 5, 2017, 9:57 PM EDT
Manas MohapatraRank #182 · 13.2K reputationPosted Jun 5, 2017, 10:19 PM EDT
Hemraj Rav31 reputationPosted Jun 5, 2017, 10:24 PM EDT
Hemraj Rav31 reputationPosted Jun 5, 2017, 10:41 PM EDT