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
gpinfotechAsked:
Who is Participating?
 
gpinfotechConnect With a Mentor Author Commented:
No issue , i got the solution
0
 
Asim NazirCommented:
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
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

 
gpinfotechAuthor 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
0
 
Asim NazirCommented:
Now this is another problem :)
0
 
Kamal KhaleefaInformation Security SpecialistCommented:
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
 
gpinfotechAuthor 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
0
 
gpinfotechAuthor 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
0
 
Kamal KhaleefaInformation Security SpecialistCommented:
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
 
gpinfotechAuthor Commented:
Hi,thank you for reply,
I have applied all the above things,
But still getting same error

Sys.Webforms.PageRequestManagerParsererrorException


Regards,
Narendra
0
 
Kamal KhaleefaInformation Security SpecialistCommented:
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
 
gpinfotechAuthor Commented:
I have applied PostBackTrigger also, still getting same error

Regards,
Narendra
0
 
Kamal KhaleefaInformation Security SpecialistCommented:
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
 
gpinfotechAuthor 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
0
 
Kamal KhaleefaInformation Security SpecialistCommented:
great can u till us what was causing the problem
0
 
gpinfotechAuthor Commented:
i got the solution
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.