I have a webpage that looks like this:
<HTML>
<HEAD>
<TITLE>Page</TITLE>
</HEAD>
<FRAMESET FRAMEBORDER=NO FRAMESPACING=0 COLS="17%,*">
<FRAME MARGINWIDTH="4" MARGINHEIGHT="0" SRC="contents.htm" NAME="contents" SCROLLING=auto>
<FRAME MARGINWIDTH="9" MARGINHEIGHT="0" SRC="body.htm" NAME="body" SCROLLING=auto>
</FRAMESET>
</HTML>
The contents.htm looks like this:
<HTML>
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
function validate (frm)
{
frm.action = frm.SERVICE_URL.value;
}
</SCRIPT>
</HEAD>
<BODY BGCOLOR="003366" text="white">
<FORM NAME="REST" METHOD=GET ACTION="http://localhost:57233/Services/ActLifeServiceImpl.svc/D1LIV_html" onSubmit="validate(this)" target="body">
Server (IIS)
<SELECT NAME="SERVICE_URL" SIZE=1>
<OPTION VALUE="http://localhost:57233/Services/ActLifeServiceImpl.svc/D1LIV_html" selected="SELECTED"> WH1212
</SELECT>
</FORM>
</BODY>
</HTML>
Now the WCF service called returns a MemoryStream, that is to be shown in the "body"-frame (body.htm), however that doesn't happen. Dependent of the browser used, the output is either downloaded, shown in another tab (perhaps even in another browser (Edge if IE is used)) or not shown at all. This used to work a few years ago, now it doesn't.
How can I make sure that the MemoryStream is shown in the "body"-frame?