Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

AJAX on server / xhtmlConformance /Server Trace

Status
Not open for further replies.

R7Dave

Programmer
Oct 31, 2007
181
US
Hello

Using Visual Studio 2005, VB, ASP.NET - I am trying to get AJAX to run on the server

My page was doing full postbacks until I made a change to my web.config - xhtmlConformance mode="Legacy"

for <xhtmlConformance mode="Legacy"/>

Legacy - full postbacks
Strict - AJAX effect
transitional - AJAX effect
remove completely - AJAX effect

This was based off this blog
When I change from "Legacy" - I get the AJAX effect but I get an error when I try to go to another page using Response.redirect

Error message

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.

I received this tip from the link above...

"It's also worth checking the framework's web.config file for the setting if you think this is affecting you and the setting isn't in your app's web.config"

How do I check the "framework's web.config file"? Is this a web.config for all apps on the server? If that is the case, can I have my app ignore a framework web.config file so I don't affect other apps?

How do I know if "server trace is enabled" where does this get set?

I thought a workaround may be to write to my web.config when the user clicks the button and set <xhtmlConformance mode="Legacy"/> then to "transitional" once the new page is posted - is this my best alternative?

I had the message before and it was solved by removing server.transfer. Does anyone have experience with this error - any suggestions?

Thanks
Dave
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top