Question

I've got problem with delete action after clicking button in MessageBox. I have something like this:

fn: function showResultText(btn) {
                                if (btn == 'ok') {
                                    rec.set('IsActive', false);

                                }

                            }

And I need to put here some redirect to open PartialView. I was trying with return link with "../Shop/Delete/' + id + '" but its not working. Is there anything in normal MVC view like actionLink?

Était-ce utile?

La solution

I would suggest using

 window.location = "../Shop/Delete/' + id + '";

directly in the button handler.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top