I have a WebForms page that, among other standard ASP.NET controls, has an iframe. The controls, including the iframe, are part of a FormView control and all of this action is occuring in the EditItemTemplate.
The "src" attribute of the iframe has a dynamic URL so I can't set it declaratively, I must do it in code.
The method I'm using works when the page is initially loaded (!IsPostBack) but doesn't work on a PostBack (specifically with the button with CommandName="Update" is clicked).
The code below is currently in the Page's PreRender handler, although I've tried it in the Load handler as well as the FormView's ItemCommand handler with no change in behavior.
On a PostBack, it looks like the src of the iframe is simply not being set. In other words, the content of the iframe is the about:blank document. I've stepped through this with the debugger and my code to set the src attrib ...
Go to the complete details ...