Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
5
Reply
@Ajax.actionlink in MVC 4
Hemraj Rav
Jun 6 2017 12:20 AM
273
Reply
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";
}
<h2>TestAjax</h2>
@Ajax.ActionLink("Click Ajax", "TestAjaxLink", new AjaxOptions {
UpdateTargetId = "idDev",
InsertionMode = InsertionMode.Replace
})
<div id="idDev" >
@ViewBag.TitleName
</div>
please see below screen shot also.
Thanks in advance.
Regards
Hemraj
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
5
)
Next Recommended Forum
callback function is not hit
Call web-api using ajax