473,406 Members | 2,698 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,406 software developers and data experts.

AJAX - Sys.WebForms.PageRequestManagerParserErrorExceptio n

I've got a masterpage with a custom control that has a calendar. when
dates on the calendar are selected, it sets a session variable. that
calender is on every page via the master page. In the home page, that
session variable is used as a param for a grdiview where eventlog
records for the day are displayed. The gridview is on the homepage
under a content tag. In data input web form pages, we use that calendar
as a datepicker for date fields. The logic works great, except, its
terrible if looking for dates accross years and months as the calendar
causes a postback everytime
month arrows are selected.

Anyways, I thought this might be a good place to implement ajax,
wrapping the calender (under the customcontrol under the master page)
in an updatepanel.

changes appeared to have the desired effect as switching months no
longer flashes the entire page. things looked very promising until I
went to test.

In other pages, selecting calendar dates has no bad effect, however in
the home page, where the eventlog grid should be displaying, I get:

Sys.WebForms.PageRequestManagerParserErrorExceptio n:The message
received from the server could not be parsed.

Kinda curious, In this case, the calendar when a date is selected,
should be resulting in a postback or somethign so the grid rebinds..
I'm kinda confused. perhaps I need a trigger or a condition? Keep in
mind all the calendar is really doing is setting a session variable.

Thanks for any help or information.

Nov 6 '06 #1
2 2173
Did you figure out why this occurs? Bo*******@hotmail.com
---
Posted via DotNetSlackers.com
Dec 28 '06 #2

Having "Response.Write" in the code behind in an event that is fired on
an Async postback (Page_Load, Render, etc.) will cause this error.
Basically, code that changes the Response will cause the problem.

This apparently didn't become an issue until Beta 2. Changing
Response.Write ("blah blah") to MyLiteral.Text = "blah blah" will get
around it. Not feasible for me, however (WAY too many *.Write*()
calls).

Anyone know of a solution, or if MS will fix this? It wasn't a problem
at one time, after all.

Jan 6 '07 #3

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

Similar topics

0
by: SMichal | last post by:
Hi, I have a simple web with simple apsx page which displays list of persons (PersonList.aspx)...as you can see in this picture (follow that link to imageshack please)...I'm using only update panel...
0
by: =?Utf-8?B?Qw==?= | last post by:
Hi, I have a ScriptManager and UpdatePanel as below <asp:Content ID="Content1" ContentPlaceHolderID="MainContent" Runat="Server"> <asp:ScriptManager ID="ScriptManager1" runat="server"> ...
1
by: Mike P | last post by:
I am trying to apply the Update Progress control to a method that is building a zip file and then giving the user the chance to save the file via a popup box. But the Update Progress control...
1
by: Adeel | last post by:
Hi, i am new to Microsoft Ajax framework. I have created a site using Ajax framework bit after uploading it when i run it it gives me the error: ...
1
by: Temesgen Meheret | last post by:
I am wrapping a grid view in an update panel, and I am not doing anything with Response.Write or Server.Transfer. But for any click inside that grid we get ...
3
by: =?Utf-8?B?cm9kY2hhcg==?= | last post by:
hey all, i have a response.write statement in my pageload and whenever i do an asyncpostback it errors out with: --------------------------- Microsoft Internet Explorer...
2
by: Angel666 | last post by:
We are using forms authenication with AJAX update control panels. We get various results but no redirect when the user has timed out and is no longer authenicated and does a asyncpostback. We...
2
by: JM_newsgroups | last post by:
Hi, When I do a postback on a particular AJAX-enabled page, I get a popup that says: "Sys.WebForms.PageRequestManagerParserErrorException: The message received could not be parsed. . . . " It...
7
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: ...
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: 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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.