locked
Calling angular 2 page from ASP API 2 RRS feed

  • Question

  • User1071675765 posted

    I want to redirect to an Angular 2 page from ASP API. Here is my code, this code error " cannot POST subscription/confirmation". How can I successfully redirect to my confirmation page after replace the string.

                    reg.OrderName = "testing order";
                    string retPath = uri; //my requesting url
                    retPath = retPath.Replace("payment", "confirmation");
                    reg.ReturnPath = retPath;

    Thursday, May 24, 2018 9:07 AM

All replies

  • User283571144 posted

    Hi Raza92,

    I want to redirect to an Angular 2 page from ASP API. Here is my code, this code error " cannot POST subscription/confirmation". How can I successfully redirect to my confirmation page after replace the string.

    As far as I know, we couldn't directly call the client-side page from web api.

    Web api is a framework that makes it easy to build HTTP services that reach a broad range of clients.

    It is used for provide the rest service.

    We couldn't directly call the web page from the web api.

    Normally, if we want to tell the client-side redirect to another page.

    I suggest you could add the redirect page url in the response.

    Then we could write codes in the client-side which will redirect to the url according to the response url.

    Best Regards,

    Brando

    Friday, May 25, 2018 2:46 AM