title: Dynamic IFrame Content from stream
body: <p>I'm currently trying to implement something called 3d secure into our checkout system-
  <a href="https://stackoverflow.com/questions/1239760/implementing-datacash-3dsecure-in-c">Implementing DataCash 3DSecure in C#</a></p>
  
  <p>I've got most of the way there with it, however now, i'm having trouble creating an iFrame with the correct content in.</p>
  
  <p>Basically, the user enters their credit card details, presses the "order" button and the page contacts the payment gateway (DataCash in our case)
  If the card requires 3d secure authentication, a pareq (long message) is returned with a bunch of other stuff.</p>
  
  <p>I've generated the page required, using this code:
  <a href="https://stackoverflow.com/questions/1265612/httpwebrequest-httpwebresponse-base-64-problem">HttpWebRequest / HttpWebResponse Base 64 problem</a></p>
  
  <p>However, i need to implement this into an iFrame.</p>
  
  <p>Here's how the documentation suggest doing it, but i cant seem to get it....</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
    &lt;title&gt;Please Authenticate&lt;/title&gt;
  &lt;/head&gt;
  &lt;body onload="OnLoadEvent();"&gt;
      &lt;form name="downloadForm" action="https://mybank.com/vbyv/verify" method="POST"&gt;
        &lt;input type="hidden" name="PaReq" value="AAABBBBCCCCHHHHHH="&gt;
        &lt;input type="hidden" name="TermUrl" value="https:// www. MyWidgits.Com/next.cgi"&gt;
        &lt;input type="hidden" name="MD" value="200304012012a"&gt;
      &lt;/form&gt;
  
      &lt;script language="Javascript"&gt; &lt;!--        function OnLoadEvent() { document.downloadForm.target = "ACSframe"; document.downloadForm.submit(); } //--&gt; &lt;/script&gt;
  
      &lt;!-- MERCHANT TO FILL IN THEIR OWN BRANDING HERE --&gt;
      &lt;iframe src="blank.htm" name="ACSframe" width="390" height="450" frameborder="0"&gt;
      &lt;/iframe&gt;
      &lt;!-- MERCHANT TO FILL IN THEIR OWN BRANDING HERE --&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>