Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Strange Error message
Message
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
01458427
Message ID:
01458489
Views:
37
Check the page below it helped me quite a bit with dynamic controls:

http://weblogs.asp.net/infinitiesloop/archive/2006/08/25/TRULY-Understanding-Dynamic-Controls-_2800_Part-1_2900_.aspx

HTH

Richard


>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!
State of Florida, DCF
Previous
Reply
Map
View

Click here to load this message in the networking platform