response object and ajax

R

rodchar

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.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 trace is enabled.

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

what would be my workaround?

thanks,
rodchar
 
B

bruce barker

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)
 
R

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.
 

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

Forum statistics

Threads
473,995
Messages
2,570,226
Members
46,815
Latest member
treekmostly22

Latest Threads

Top