asp.net mvc2 ajax.actionlink is not working refresh problem
Posted
by mazhar kaunain baig
on Stack Overflow
See other posts from Stack Overflow
or by mazhar kaunain baig
Published on 2010-06-13T16:31:18Z
Indexed on
2010/06/14
1:52 UTC
Read the original article
Hit count: 428
has someone make ajax.actionlink for delete to work properly.After deleting the record successfully at the end it is not refreshing the page properly. the page refresh is my problem. i have defined the updatetarget id and returning view(model) from my controller but it is returning the master page with it.
So the thing is that i am having a page with a page.I have used redirect as well which is not refreshing,
<%= Ajax.ActionLink("Delete", "Delete", new { id = item.int_OrganizationGroupId }, new AjaxOptions { UpdateTargetId = "abc", HttpMethod = "Post", Confirm = "Delete Group with Organization Group ID:" + item.int_OrganizationGroupId + " Organization Group Name:" + item.vcr_OrganizationGroupName, OnSuccess = "handleSuccess" })%>|
abc is the id of the table
From controller
View("ManageGroup,Model);
© Stack Overflow or respective owner