[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Parse error while loading page

Posted on 2011-04-27
17
Medium Priority
?
146 Views
Last Modified: 2014-03-26
Hi all,
I am developing Master page enabled Ajax controls used web forms
I am getting following error when redirecting from one page to other.
Sys.Webforms.PageRequestManagerParsererrorException
Find the attached document for Aspx and code i have used.
Regards,
Narendra


Error.docx
0
Comment
Question by:gpinfotech
  • 8
  • 5
  • 4
17 Comments
 
LVL 10

Expert Comment

by:Asim Nazir
ID: 35474021
Following solutions from comments area of above links are important:

# re: How to fix Sys.WebForms.PageRequestManagerParserErrorException in AJAX 1.0
Wednesday, January 27, 2010 3:50 AM by Jan Maat
a possible solution: Disable output caching for pages. I had output caching enabled for .ASCX files. That causes the problem.

# re: How to fix Sys.WebForms.PageRequestManagerParserErrorException in AJAX 1.0
Wednesday, January 27, 2010 10:09 AM by Adriano
I resolved this setting  EnableEventValidation="false" .

# re: How to fix Sys.WebForms.PageRequestManagerParserErrorException in AJAX 1.0
Monday, February 08, 2010 4:28 AM by Chetan Patel
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 '

<!DOCTYPE html PUB'.

# re: How to fix Sys.WebForms.PageRequestManagerParserErrorException in AJAX 1.0
Friday, August 27, 2010 8:31 AM by Sharanya
Hi,

The solution mentioned above didn't work for me. I tried EnablePartialRendering="false" in scriptmanager, and this worked for me
0
 

Author Comment

by:gpinfotech
ID: 35474719
Hi all, thank yo for reply, i have tried with Output caching and EnableEventValidation="false", but still getting errror and
I have also tried with EnablePartialRendering="false", here problem solved but page is getting refresh(appearing and not appearing) for every post back

Give me any solution by checking my attached file with code

Regards,
Narendra.S
0
NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

 
LVL 10

Expert Comment

by:Asim Nazir
ID: 35474948
Now this is another problem :)
0
 
LVL 16

Expert Comment

by:Kamal Khaleefa
ID: 35481145
Hi
try to do the following in ur code

set EnablePartialRendering="true"  as here
 <asp:ScriptManager ID="ScriptManager1" runat="server" EnablePartialRendering="true"  />
and set  UpdateMode="Conditional"
 <asp:UpdatePanel ID="UpdatePanel1" UpdateMode="Conditional" runat="server">


0
 

Author Comment

by:gpinfotech
ID: 35481273
Hi
Thank you for your reply,
I have applied EnablePartialRendering="true" for Scriptmanager and
UpdateMode="Conditional" for Update panel, but still it is showing same error

Sys.Webforms.PageRequestManagerParsererrorException

Any other solutions
Regards,
Narendra
0
 

Author Comment

by:gpinfotech
ID: 35481299
Hi all, I am using Menu and Multiview and Views in Multiview with Master page.
I have tested without  Multiview and menu control. I am able to redirect from one page to other page.

I am getting this error when i used Menu control and Multivew and View, check my attached file once. I am getting this error when i am redirecting from one page to other page only

Any solution.
Regards,
Narendra
Error.docx
0
 
LVL 16

Expert Comment

by:Kamal Khaleefa
ID: 35481391
make sure trace is set to false in ur page
also include all your controls inside the update panel
also use Response.redirect instead of server.transfer
also try to put
<Triggers>
    <asp:AsyncPostBackTrigger ControlID="btn_Update" EventName="Click" />
    <asp:AsyncPostBackTrigger ControlID="btn_Update" EventName="Click" />

   
</Triggers>

at the begining
0
 

Author Comment

by:gpinfotech
ID: 35481496
Hi,thank you for reply,
I have applied all the above things,
But still getting same error

Sys.Webforms.PageRequestManagerParsererrorException


Regards,
Narendra
0
 
LVL 16

Expert Comment

by:Kamal Khaleefa
ID: 35481638
try to use postbacktrigger
not asyn...
change
 <asp:AsyncPostBackTrigger ControlID="btn_Update" EventName="Click" />
    <asp:AsyncPostBackTrigger ControlID="btn_Update" EventName="Click" />

to

 <asp:PostBackTrigger ControlID="btn_Update" EventName="Click" />
    <asp:PostBackTrigger ControlID="btn_Update" EventName="Click" />
0
 

Author Comment

by:gpinfotech
ID: 35481844
I have applied PostBackTrigger also, still getting same error

Regards,
Narendra
0
 
LVL 16

Expert Comment

by:Kamal Khaleefa
ID: 35481998
Check the session timeout property in the web.config.

Make sure that you are not nullifying(Remove/Abondon) the session key in 10-15 minutes in case if you are using Session in your page.

also remove the 3600 from ur script manger

also

My only idea would to be change your button field to a hyperlink, and if you're currently passing a command argument, pass it in the querystring.
0
 

Author Comment

by:gpinfotech
ID: 35489165
Hi all, I have get the solution by  redirecting from grid view , template field

here is the code i used:

<asp:TemplateField HeaderText="EDIT">
                   <ItemTemplate>
                   <a href='<%# "Pal_EditSyllabus.aspx?Syllabusid=" + Eval("Syllabusid")%>'>
                   <img src ="images/edit-icon.gif" alt ="Edit" />
                   </ItemTemplate>
                   </asp:TemplateField>

Regards,
Narendra
0
 
LVL 16

Expert Comment

by:Kamal Khaleefa
ID: 35497010
great can u till us what was causing the problem
0
 

Accepted Solution

by:
gpinfotech earned 0 total points
ID: 35766865
No issue , i got the solution
0
 

Author Closing Comment

by:gpinfotech
ID: 39955404
i got the solution
0

Featured Post

Veeam Disaster Recovery in Microsoft Azure

Veeam PN for Microsoft Azure is a FREE solution designed to simplify and automate the setup of a DR site in Microsoft Azure using lightweight software-defined networking. It reduces the complexity of VPN deployments and is designed for businesses of ALL sizes.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
Suggested Courses

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question