L
lbolognini
Hi all,
I've chosen to render localized messages in my web app with using
databind. Every string has something like this:
<label id="foo" text='<%# getText(LangID, MessageCode) %>'></label>
getText is just a static method we use to retrieve the strings from the
db by populating a DataReader.
We chose not tu use the new ASP.NET 2 localization features because it
stores everything in XML and we preferred mantaining our localized
string in a db.
Performance bottlenecks could also be worked-around by placing a
DataSet with the localized strings for the most used languages
(English, Spanish, German, Italian, French, etc...).
My question is: when I call Page.DataBind() how many roundtrips to the
database are performed? Is it one for every control or just one for the
whole page?
Do you see any shortcomings with this approach?
Thanks,
Lorenzo
I've chosen to render localized messages in my web app with using
databind. Every string has something like this:
<label id="foo" text='<%# getText(LangID, MessageCode) %>'></label>
getText is just a static method we use to retrieve the strings from the
db by populating a DataReader.
We chose not tu use the new ASP.NET 2 localization features because it
stores everything in XML and we preferred mantaining our localized
string in a db.
Performance bottlenecks could also be worked-around by placing a
DataSet with the localized strings for the most used languages
(English, Spanish, German, Italian, French, etc...).
My question is: when I call Page.DataBind() how many roundtrips to the
database are performed? Is it one for every control or just one for the
whole page?
Do you see any shortcomings with this approach?
Thanks,
Lorenzo