Redirection to another page from a custom widget

Posted by Community Admin on 03-Aug-2018 11:45

Redirection to another page from a custom widget

All Replies

Posted by Community Admin on 18-Jul-2017 00:00

I have a custom widget that has an ajax post. This accesses a method in a controller which has the following code:

 

 [HttpPost]
        public void CompareTariffs(string selection)
       
            Response.Redirect("~/Default.aspx");
       

 

However the page just refreshes and remains on the same page, it does not redirect to the other page. Would anyone know why this is happening?

This thread is closed