Hello Im using Framesets In one of the frames

<FRAME SRC="GetURL.aspx" NAME="inputFrame">

the frame is used to gets a string of html characters The string is called StrResponse

Response.Write(strResponse)

displays the html in the input frame GetURl.aspx
but I want the string displayed in <FRAME SRC="C:\test2.html" NAME="displayFrame"> any ideas

Hello Im using Framesets In one of the frames

<FRAME SRC="GetURL.aspx" NAME="inputFrame">

the frame is used to gets a string of html characters The string is called StrResponse

Response.Write(strResponse)

displays the html in the input frame GetURl.aspx
but I want the string displayed in <FRAME SRC="C:\test2.html" NAME="displayFrame"> any ideas

Which page does the response event get fired in?

Which page does the response event get fired in?

Its being fired in inputFrame
<FRAME SRC="GetURL.aspx" NAME="inputFrame">

but I want it displayed in displayFrame

<FRAME SRC="C:\test2.html" NAME="displayFrame">

Well... since the display frame source is a different file... you will not be able to execute the ASPX page's code in it.

Actually... since the display frame is an HTML file, it cannot execute server side code at all, period.

The code too on the ASPX page is a part of the page class(or partial class in .NET 2.0) and is internal to that class.

My guess is that you need to ditch the frames altogether. They are not designed to implement the solution you seek.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.