On IIS 10 (on older IIS servers everything works fine) after some later updates when I work with class in script (*.asp), that was executed (server.execute) from another script then all response.write code written in Class_Terminate() is written to the end of parent body outside the HTML element where it shoud be.
<div>
<%server.execute ("somescript.asp")%>
</div>
Result from Class_Terminate() in this example is written under the div element. When I include the script instead of executing, everything works fine. The only functional workaroud is to add content of Class_Terminate() to another Sub or Function (like Sub WriteOutput()) in Class and call it at the end of the work with class.. Something like this
set Class1=new MyClass
with Class1
...
...
.WriteOutput
end with
set Class1=nothing
Is there any other way? For example to change some setting on the side of IIS? Or is this just a bug, which is going never to be corrected (its classic asp in 2020 I know..) and I have to change the code of all classes?