Update panel and Response Filter

Last post 03-01-2007 11:40 AM by jmoore. 2 replies.

Sort Posts:

  • Update panel and Response Filter

    10-29-2006, 10:44 AM
    • Loading...
    • renanf
    • Joined on 10-29-2006, 3:32 PM
    • Posts 1

    Hello

    I have a page that uses a response filter to change some generic text to a language specific one. I also use an update panel in the same page.

    In previous atlas versions this functionaly worked fine and I was able to replace the texts.

    In the beta release, this no longer works and when trying to change a text I ecounter an error (PageRequestManagerParserErrorException). I looked into the response content and I think it includes a length of the expected response.

    Is there a way to around this issue?

    Thanks,

    Renan

  • Re: Update panel and Response Filter

    10-30-2006, 1:43 PM
    • Loading...
    • Eilon
    • Joined on 06-26-2002, 6:14 PM
    • Redmond, WA
    • Posts 715
    • AspNetTeam

    I'm afraid you're going to have a real hard time getting something like that to work during async posts. Instead of using a response filter I would suggest changing the app to use the ASP.NET localization features and then there shouldn't be a problem.

    Thanks,

    Eilon

    Blog: http://weblogs.asp.net/LeftSlipper/
  • Re: Update panel and Response Filter

    03-01-2007, 11:40 AM
    • Loading...
    • jmoore
    • Joined on 03-01-2007, 11:21 AM
    • Posts 1

    At my company we are experiencing the same problem renanf mentions. But in our case ASP.NET localization is not really an option. We have multiple clients running within the same environment and we give them the ability at runtime to customize certain business terms like "Supplier" to match their internal usage. Rather than ever directly use the term Supplier, we use a token [$Supplier$], then each client can customize that token to match what they use internally: Supplier, Vendor, Distributor, Partner, etc. These tokens are used throughout the application: in aspx pages, in c# code, inside text stored in the database. Replacement terms are stored in the database and are modifiable through the web interface at runtime by the clients themselves. The solution we came up with to allow dynamic on the fly replacement of tokens regardless of where they came from was a Response filter. Essentially we just run a regex on the response, swapping out tokens for the replacements configured by the client that the current user is associated with. Localization doesn't help us because the clients want the ability to change the tokens at runtime via the frontend.

    In the previous version of atlas that we were using the response filter caused us no problem.  After upgrading to the release version of atlas however, we must either disable partial rendering in the script manager tag (basically stop using update panels) or disable the token replacement filter (not an option).

     Do you have any recommendations or workarounds? Will this limitation where update panels do not work with Response filters be addressed in a future version of atlas?
     

Page 1 of 1 (3 items)