title: How to resize an IFRAME on load in an .aspx page?
body: <p>In an .aspx page with a VB.NET codebehind I am using an IFRAME which would be created inside the repeater control.</p>
  
  <p>Since I want to resize the IFRAME based on the content within the page I have been using the resize function <a href="http://www.wolfcreekconsulting.com/support/techlib/web/DynamicallyResizedIframesPart2.php" rel="nofollow">obtained from here</a> on the IFRAME onload as shown below. </p>
  
  <p><code>&lt;iframe id="IframeSubsectionArea" scrolling="auto" width="100%" onload="resizeIframeToFitContent(this)" runat="server"&gt;</code></p>
  
  <p>However it is throwing an error as the method could not be found in the form.</p>
  
  <ol>
  <li>Is there any client side script variant for the onload event?</li>
  <li>What might be the reason for the error and its solution?</li>
  </ol>