How do you close an aspx page?

csharp , ashx , httpcontext Los Angeles, United States
  • 11 years ago

    I have third party API that I'm using, and part of their process requires a cancel URL and a success URL that they call depending on the outcome of the process. I want these to actually call my service which is accessible via ASHX - so I'm sending this process the address of my ASHX page. This works fine, the service gets called... but then the "page" stays open in IE. Needless to say, there's nothing on there, and some response XML shows up after the service call has been completed.

    Does anyone know of a way that I can send something to the httpcontext response (or something else - I'm open to suggestions!) to close the .ashx page? There should be no user interaction required, since they didn't open the window in the first place. Thanks for any help you can provide!!

  • 10 years ago
    Simply use javascript file.


Post a reply

Enter your message below

Sign in or Join us (it's free).


Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“Linux is only free if your time has no value” - Jamie Zawinski