Quantcast
Channel: Redirect to a new view after using Ajax call to a controller.
Viewing all articles
Browse latest Browse all 3

Redirect to a new view after using Ajax call to a controller.

$
0
0

Hello.

I am working with a JQGrid which has a edit image button. The edit Controller method is being invoked using a ajax call. The method gets invoked but it is not redirecting to a new view from the controller method.

I read some articles how which says ajax call will work only in current page and is used to avoid complete post back. The other method was to use window.location.href But this approach will only work GET and not for POST. I do not want to create any partial views.

How to get this working? I want to invoke my HTTPPOST method and then redirect to a new view.

Thanks,

Zia Ul Rahman.


Viewing all articles
Browse latest Browse all 3

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>