KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have a view page my view page <div id="beReplaced"> @Ajax.ActionLink("please click on me to bring the partial view", "PatrialViewToBeCalled", new AjaxOptions() {UpdateTargetId = "beReplaced", InsertionMode = InsertionMode.InsertAfter, HttpMethod="Get", LoadingElementId = "prgress" }) </div> i have a Controller public PartialViewResult PatrialViewToBeCalled() { var customer = db.Customers.First(); return PartialView("PartialViewThatMustBeShow",customer); } but when i click on the generated link it brings me to a new page instead of replacing or appending the partial view to the div tag. What's the problem?
Tags (comma-separated)
Save Edits
Cancel