I cant response.write...

G

Guest

hello, from my main page, i have an iframe which calls another .aspx file;
and the other .aspx file will response.write values to it. but i keep getting
the below message. can someone pleasehelp me okie here? thanks.

?exception
{System.Web.HttpException}
[System.Web.HttpException]: {System.Web.HttpException}
HelpLink: Nothing
InnerException: Nothing
Message: "Response is not available in this context."
Source: "System.Web"
StackTrace: " at System.Web.UI.Page.get_Response()
at DATTApp.SC_Ext_Rpt.GenerateExternalReport() in
C:\DATT\Distributors\SC_Ext_Rpt.aspx.vb:line 102"
TargetSite: {System.Reflection.RuntimeMethodInfo}
 
G

Guest

There is a barrier between server and client in web applications. Once you
send the bytes out, you cannot simply response.write from one page to
another.

To accomplish what you are attempting, you will have to write out client
JavaScript that writes across the page barrier. With JavaScript, you can get
to the main window and write to any frame. With an IFrame, you can write out
to the parent page. If the parent also sits in a frameset, you can navigate
to its parent and down to any other frame, either by ordinal value or by name.


---

Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top