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 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
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
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
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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
|
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
|
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...
|
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.
|
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...
| |
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...
|
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...
|
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...
|
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...
|
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...
|
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,...
| |
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...
|
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...
|
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...
|
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();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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...
| |