In an .aspx page with a VB.NET codebehind I am using an IFRAME which would be created inside the repeater control.
Since I want to resize the IFRAME based on the content within the page I have been using the resize function obtained from here on the IFRAME onload as shown below.
<iframe id="IframeSubsectionArea" scrolling="auto" width="100%" onload="resizeIframeToFitContent(this)" runat="server">
However it is throwing an error as the method could not be found in the form.
- Is there any client side script variant for the onload event?
- What might be the reason for the error and its solution?