Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

7
  • Provide implementation of GetAdvertisementDetails() as well as View code. Commented Apr 8, 2015 at 11:34
  • You last (now deleted) question indicated you were using ajax to call this method - is that still the case? Commented Apr 8, 2015 at 11:35
  • I am using ajax to call delete methode like this..function Deleteadvertisement(AdvertisementId) { GetServerData('Advertisement/DeleteAdvertisementDetails/' + AdvertisementId, null, null); } Commented Apr 8, 2015 at 11:39
  • dont use ajax call make simple call either by jquery or javascript Commented Apr 8, 2015 at 11:42
  • 2
    So why did you delete the last question? Ajax calls stay on the same page they do NOT redirect so return RedirectToAction(...) is pointless. Why would you degrade performance by redirect anyway instead of just removing the relevant advertisementfrom the view. If you do want poor performance then do a normal submit (include a form element and submit button for each advertisement) Commented Apr 8, 2015 at 11:44