Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Damian Green 452 posts 1433 karma points
    Sep 19, 2013 @ 11:37
    Damian Green
    0

    User control with a script manager causes error with razor view

    I am moving a sql server reporting services report viewer to v6 and i am getting a nasty error that looks to be caused by the script manager and the way postback is working.

    The report viewer control is encapsulated in a user control which also has the script manager and i am calling the usercontrol from a macro and this is called from my razor view.

    I would just remove the script manager but I cant as the report viewer requires it as it has ajax functions for loading the report filters etc.

    Here is the error and does anyone know a way i can stop this happening or a way around it?  Is it possible to have a standard master page when using Views? This might get around the issue as it all worked fine in v4.

    Uncaught Sys.WebForms.PageRequestManagerParserErrorException: 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 '
    <div style="width:1'. 
  • Damian Green 452 posts 1433 karma points
    Sep 19, 2013 @ 18:26
    Damian Green
    0

    This may also be down to viewstate. Is it possible to keep using using usercontrols that have controls the utilise viewstate when in the MVC world and umbraco v6 razor views?

  • Damian Green 452 posts 1433 karma points
    Oct 01, 2013 @ 16:57
    Damian Green
    0

    Still no luck with this. Any ideas?

    Anyone got a standard user control that has a script manager on it working in an MVC view?

Please Sign in or register to post replies

Write your reply to:

Draft