title: SagePay IFrame loads the Response URL in IFrame
body: <p>We implemented SagePay in our .NET MVC project with IFrame method. However we are facing an issue with the response redirection.</p>
  
  <p>After the successful payment via sage pay all the responses are loading within the IFrame itself. Where as we would like to redirect the response in the parent window itself.</p>
  
  <p>We also noted that in the demo .NET Sage Kit, the redirection is happening correctly with the following code.</p>
  
  <p>Response.Write(string.Format("RedirectURL={0}server/Result.aspx?Status={1}&amp;VendorTxCode={2}", SagePaySettings.SiteFqdn, serverNotificationRequest.Status, serverNotificationRequest.VendorTxCode));</p>
  
  <p>In our MVC frame work, we are also forming the url in the same format with a slightly different code, that is,</p>
  
  <p>context.HttpContext.Response.Output.WriteLine("RedirectURL={0}PaymentResponse/Success?Status=OK&amp;VendorTxCode={1}", SagePaySettings.SiteFqdn, response.VendorTxCode);</p>
  
  <p>Could you please help us to solve this issue.</p>