Precondition:
I have an aspx-page with iframe inside. This iframe points to the url handled by MVC on the same site (it\'s hybrid site, both standard ASP.NET and ASP
There is this msdn page about this bug (or feature).
You get these kinds of errors when you move the iframe element around in DOM. In such cases, IE 9 garbage collects the iframe (causing your undefined bug) and reloads it at another position.
In general, you should create the element, set its src
attribute only once and then put it somewhere in the DOM tree once. It has nothing to do with the code which runs in the iframe itself.