C # - view url in background

with brain freeze today.

I am looking for a URL to add tracking information just before my cart is redirected to the main page (i.e. right after the purchase).

I cannot imagine how I could visit this URL without actually redirecting to my tracking page, and then redirecting back to the main page. Somebody knows?

It seems like it should be very simple, but I can't get it to work.

thank

+3
source share
4 answers

Use HttpWebClient to automatically load a server side webpage?

http://msdn.microsoft.com/en-us/library/system.net.webclient(v=vs.80).aspx

+2
source

:

  • iframe , URL-.
  • .
  • ajax ( puchase)
+2

Are you familiar with JSON requests? You can hit the URL in the background (and specify several parameters) without loading a new page.

+1
source

How about using javascript:

function async_url_call(url) {

    xmlHttp = GetXmlHttpObject();

    if (xmlHttp == null) {
        alert("Your browser does not support AJAX!");
        return;
    }

    xmlHttp.open("GET", url, true);
    xmlHttp.send(null);
}
0
source

All Articles