Link to home
Start Free TrialLog in
Avatar of gpinfotech
gpinfotechFlag for India

asked on

Parse error while loading page

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
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
Avatar of gpinfotech

ASKER

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
Now this is another problem :)
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">


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
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
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
Hi,thank you for reply,
I have applied all the above things,
But still getting same error

Sys.Webforms.PageRequestManagerParsererrorException


Regards,
Narendra
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" />
I have applied PostBackTrigger also, still getting same error

Regards,
Narendra
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.
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
great can u till us what was causing the problem
ASKER CERTIFIED SOLUTION
Avatar of gpinfotech
gpinfotech
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
i got the solution