How to persist localized values between postback ???

Thread is closed for posting
2 posts, 0 answers
  1. CSurieux
    CSurieux avatar
    465 posts
    Member since:
    Jan 2007

    Posted 22 Sep 2009 Link to this post


    I have notice this pb some time ago: when I set localized values on  first non postback  as


    they are not persisted and I get back the base values after soem postback..

    I have already reported this but my radprogressArea was not visible, and I admitted it was the reason..
    Now it is in a visible control and visible itself and I have same pb.

    For me it is a bug, we should be able to set these values on start and forget them..

    All my callback on my page are ajaxified but the last one so I don't know when to install these localized values.
    If I set them on ajax call back, I have to include the radprogressArea in the Ajax Settings, and this is not good.

    Thanks for clear process.


  2. Vesko
    Vesko avatar
    122 posts
    Member since:
    Mar 2009

    Posted 23 Sep 2009 Link to this post

    You need to put the localization code in every page load (not only on the first one).

    protected void Page_Load(object sender, EventArgs e) 
        //localization here. Do not use if (!IsPostback) 

    Alternatively, you can use resx files.

    Hope this helps.
Back to Top