473,698 Members | 2,203 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

response object and ajax

hey all,
i have a response.write statement in my pageload and whenever i do an
asyncpostback it errors out with:

---------------------------
Microsoft Internet Explorer
---------------------------
Sys.WebForms.Pa geRequestManage rParserErrorExc eption: The message received
from the server could not be parsed. Common causes for this error are when
the response is modified by calls to Response.Write( ), response filters,
HttpModules, or server trace is enabled.

Details: Error parsing near 'Hello World184|updat' .
---------------------------
OK
---------------------------

what would be my workaround?

thanks,
rodchar
Nov 28 '07 #1
3 1520
test if async postback, and don't do the response.write. the async
postback only wants the html from the update panels content.

if its in the panel, switch to HtmlGeneric.

-- bruce (sqlwork.com)

rodchar wrote:
hey all,
i have a response.write statement in my pageload and whenever i do an
asyncpostback it errors out with:

---------------------------
Microsoft Internet Explorer
---------------------------
Sys.WebForms.Pa geRequestManage rParserErrorExc eption: The message received
from the server could not be parsed. Common causes for this error are when
the response is modified by calls to Response.Write( ), response filters,
HttpModules, or server trace is enabled.

Details: Error parsing near 'Hello World184|updat' .
---------------------------
OK
---------------------------

what would be my workaround?

thanks,
rodchar
Nov 28 '07 #2
Obviously, from reading the exception description, the solution is NOT to
have any Response.Write statements in your Page_Load hander. What's the
purpose of doing this anyway?
--
--Peter
"Inside every large program, there is a small program trying to get out."
http://www.eggheadcafe.com
http://petesbloggerama.blogspot.com
http://www.blogmetafinder.com

"rodchar" wrote:
hey all,
i have a response.write statement in my pageload and whenever i do an
asyncpostback it errors out with:

---------------------------
Microsoft Internet Explorer
---------------------------
Sys.WebForms.Pa geRequestManage rParserErrorExc eption: The message received
from the server could not be parsed. Common causes for this error are when
the response is modified by calls to Response.Write( ), response filters,
HttpModules, or server trace is enabled.

Details: Error parsing near 'Hello World184|updat' .
---------------------------
OK
---------------------------

what would be my workaround?

thanks,
rodchar
Nov 28 '07 #3
i was just doing some testing so it's not really that important just trying
to understand what you can and can't do with ajax.
thanks again,
rod.

"Peter Bromberg [C# MVP]" wrote:
Obviously, from reading the exception description, the solution is NOT to
have any Response.Write statements in your Page_Load hander. What's the
purpose of doing this anyway?
--
--Peter
"Inside every large program, there is a small program trying to get out."
http://www.eggheadcafe.com
http://petesbloggerama.blogspot.com
http://www.blogmetafinder.com

"rodchar" wrote:
hey all,
i have a response.write statement in my pageload and whenever i do an
asyncpostback it errors out with:

---------------------------
Microsoft Internet Explorer
---------------------------
Sys.WebForms.Pa geRequestManage rParserErrorExc eption: The message received
from the server could not be parsed. Common causes for this error are when
the response is modified by calls to Response.Write( ), response filters,
HttpModules, or server trace is enabled.

Details: Error parsing near 'Hello World184|updat' .
---------------------------
OK
---------------------------

what would be my workaround?

thanks,
rodchar
Nov 29 '07 #4

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

Similar topics

2
1992
by: Rein Petersen | last post by:
Hi All, I've recently been intrigued with this notion of "Service Streaming": http://ajaxpatterns.org/HTTP_Streaming in which you make use of the webserver and browsers ability to maintain a connection using a loop on the web server. I know those of you familiar with how IIS/asp.net (aspnet_isapi.dll) handles HttpApplication threads (a pool) are probably very offended by this
12
22342
by: petermichaux | last post by:
Hi, In my browser, I make an AJAX request. The server sends me a fragment of an HTML document. That fragment has some JavaScript inside some script tags. How do I run these scripts when the fragment arrives at the browser? Thanks, Peter
4
7463
by: evgenyg | last post by:
Hello ! We have the following situation - when Ajax request is sent what's being returned by the server is usually an XML (which is used for DOM updates) but sometimes it's HTML which is a whole new page that should replace an existing one. I.e when we issue an Ajax request we don't know what will be returned and analyze the response to act accordingly. Now, the way to replace the current document with a new one used to be easy and...
2
2199
by: Yorian | last post by:
Hi, Another problem another question (as usual). I want to retrieve data through ajax, within the data there is some javascript which needs to be used (I figured that one out using eval ()). The problem is that the script I run (and get from the response) needs to use the response itself.
11
9893
by: trpost | last post by:
I am using ajax / php where I am looking up some info from the database and populating a select list dynamically, however I am running into some sort of size limitation with the ajax.response object. If the string I am passing to javascript from php is too large javascript does not get it all the data. The magic number appears to be 6123 characters, anything below that it works fine, anything above and if I alert the ajax.response, I see...
1
2509
by: dan.goyette | last post by:
I'm fairly new to using AJAX. I'm currently developing a data grid application in coldfusion, using AJAX for paging/filter/sorting updates to the grid. So far I've just been returning raw html, and updating the innerHTML of a div on the page when the response comes back. But now I've decided it would be useful to split my response into (at least) two parts. The first will be the raw HTML to place in the div. The second part will be...
10
2257
by: Daniel Loose | last post by:
hi dear folks, i'm new to ajax. simple request no problem - but it seems when I set the response handler function, I can only pass the function name and not give parameters, so I have a problem when starting e.g. 5 ajax requests parallele. how to do that correctly? for one case, where I used *different* resp. handlers, I solved the problem by global variables - but now I have a loop of e.g. 20 calls to the *same* r.handler and I don*t...
1
1707
by: breal | last post by:
I have an AJAX.Request object that I am using to call a page that renders a bunch of tables containing numerous input fields. This works fine in FireFox, but gets an error warning in IE7. I have determined what causes the problem and it is because the response contains Javascript in the input fields. In IE7 the javascript on these fields returned from the AJAX.Request continue to work, but I get other errors later when I submit the...
7
3300
by: Jim in Arizona | last post by:
I'm brand new at ajax. In fact, about 20 minutes ago was the first time I got it to work. The problem I'm having on another page did not work, however. I'm running into the following error: Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server...
0
8672
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8600
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9156
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9021
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
7712
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5860
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4614
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2323
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
1998
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.