title: How to get src of an IFrame after i have preformed a Server.Transfer?
body: <p>I have an <code>IFrame</code> loading multiple pages, after the page submits the <code>C#</code> Behind code uses Server.Transfer to move the <code>IFrames</code> view to my Success page.</p>
  
  <p>When I check the <code>src</code> on the onload event it always shows the <code>src</code> path to the original page and not my success page.</p>
  
  <p>This is how I check the <code>src</code>:</p>
  
  <pre><code>var arr = $('#IFrameDam').attr('src').split('.');
  var src = arr[0].toString() + "." + arr[1].toString();
  if (src == "GISuccess.aspx" || src == "GIFailed.aspx" || src == "GIConstruction.aspx") {
    //do something
  }
  </code></pre>
  
  <hr>
  
  <p>Edit</p>
  
  <p>Using <code>var action = $('#IFrameDam')[0].contentWindow.location;</code></p>
  
  <p>Still does not get me GISuccess.aspx</p>
  
  <p><img src="https://i.stack.imgur.com/mzPU8.png" alt="enter image description here"></p>