We help IT Professionals succeed at work.

Check out our new AWS podcast with Certified Expert, Phil Phillips! Listen to "How to Execute a Seamless AWS Migration" on EE or on your favorite podcast platform. Listen Now

x

Parse error while loading page

gpinfotech
gpinfotech asked
on
Medium Priority
174 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
Comment
Watch Question

Asim NazirProject Manager

Commented:
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

Author

Commented:
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
Asim NazirProject Manager

Commented:
Now this is another problem :)
Kamal KhaleefaInformation Security Specialist

Commented:
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">


Author

Commented:
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

Author

Commented:
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
Kamal KhaleefaInformation Security Specialist

Commented:
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

Author

Commented:
Hi,thank you for reply,
I have applied all the above things,
But still getting same error

Sys.Webforms.PageRequestManagerParsererrorException


Regards,
Narendra
Kamal KhaleefaInformation Security Specialist

Commented:
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" />

Author

Commented:
I have applied PostBackTrigger also, still getting same error

Regards,
Narendra
Kamal KhaleefaInformation Security Specialist

Commented:
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.

Author

Commented:
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
Kamal KhaleefaInformation Security Specialist

Commented:
great can u till us what was causing the problem
Unlock this solution with a free trial preview.
(No credit card required)
Get Preview

Author

Commented:
i got the solution
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a free trial preview!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.