Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Strange Error message
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
01458427
Message ID:
01458432
Vues:
44
>I created a user control that has 2 RadioButtonLists and 2 DropDownLists. One set of RadioButtonLists enables one of the DropDownLists. If I drop the control onto a page and run it, it works fine.
>
>However, we're going to end up with 50+ controls, so I'm adding them to the page at runtime, like this:
>
>
>Control control = LoadControl(ControlName);
>PlaceHolder1.Controls.Add(control);
>
>
>
>When I click either of the RadioButtonLists or DropDownLists I get
>
>
>---------------------------
>Microsoft Internet Explorer
>---------------------------
>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 P'.
>---------------------------
>OK  
>--------------------------- 
>
>
>I Googled it and found this, http://weblogs.asp.net/leftslipper/archive/2007/02/26/sys-webforms-pagerequestmanagerparsererrorexception-what-it-is-and-how-to-avoid-it.aspx, but this is all greek to me. I have no clue what's wrong
>or how to fix it.
>
>Help!

I see someone advocates adding ' enableEventValidation="false"' to the errant page. Might get rid of the error but not the cause.
There's a link here to some debugging strategies :http://msdn.microsoft.com/en-us/library/bb310803.aspx
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform