This is a migrated thread and some comments may be shown as answers.

How to persist localized values between postback ???

1 Answer 94 Views
Upload (Obsolete)
This is a migrated thread and some comments may be shown as answers.
CSurieux
Top achievements
Rank 2
CSurieux asked on 22 Sep 2009, 10:00 AM
Hello,

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

ModuleProgressArea.Localization.UploadedFiles

="xxx";
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.

CS

1 Answer, 1 is accepted

Sort by
0
Vesko
Top achievements
Rank 2
answered on 23 Sep 2009, 02:09 PM
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.
Tags
Upload (Obsolete)
Asked by
CSurieux
Top achievements
Rank 2
Answers by
Vesko
Top achievements
Rank 2
Share this question
or