473,387 Members | 1,749 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

I cant response.write...

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}
Nov 18 '05 #1
1 1284
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!
***************************
"Asha" wrote:
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}

Nov 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Gary | last post by:
I am having a strange problem that I cannot solve. I have an asp page that I use for a user to login and gain access to other pages. When the user logs in I set a couple of session variables like...
13
by: TinyTim | last post by:
I'm a newbie at ASP & HTML. It seems that when you use server side code and you're going to return a customized HTML form with several fields and labels, you have to do an extensive amount of...
3
by: Aaron Brockhurst | last post by:
Hi Can anyone help? I cant get my php script to insert or delete records into a mysql table. I can view them all fine but that's about it. I've checked the user permissions on mysql and...
4
by: Jake Lewis | last post by:
I have an HTML page that loads fine including the .js file <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title>Untitled Document</title> <script...
2
by: rooster575 | last post by:
I am trying to allow a web user to download a file that exists in a protected directory. If I use the following sub, the contents of the file are written to the web page, instead of prompting...
1
by: Asha | last post by:
greetings, i'm using an iframe <iframe id="iFrame" runat="server" src="SC_Ext_Rpt.aspx" width="775px" height="900px" frameborder="no"> </iframe> and in my file SC_Ext_Rpt.aspx, if i were to...
1
by: John | last post by:
Dear, We have 2 IIS server on win2000. we use the web server for upload file from server1 IIS to server2 IIS. We can connect from IIS1 to IIS2 success but the file unable to upload with below...
4
by: zack | last post by:
Any help with this would be greatly appreciated, as cannot work out how to resolve. I have a report called "3_Strikes". In its 'On open' event is command to also open a criteria form popup form...
2
by: Sticksboy | last post by:
I keep getting this error message - Item cant be found in the collection corresponding to the requested name or ordinal I dont understand what it means to be honest. I am trying to get the code...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.