protected void Page_Load(object sender, EventArgs e) { SoundCloudClient sc = new SoundCloudClient ("b7cd21ffd93dc601e76f180705b84429", "8425feac820870f86617c8607608c30e", "http://test.trackprotect.com/Social/scconnect.aspx", false); if (string.IsNullOrEmpty(Request.QueryString["code"])) { Response.Redirect(sc.GetAuthorizeUrl()); } else { sc.GetAccessToken(Request.QueryString["code"]); } }