More in this section

Forums / General Discussions / Redirection to another page from a custom widget

Redirection to another page from a custom widget

1 posts, 0 answered
  1. Vanessa
    Vanessa avatar
    0 posts
    Registered:
    21 Jun 2017
    18 Jul
    Link to this post

    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?

1 posts, 0 answered