Wednesday, March 28, 2012

ASP.NET AJAX Javascript Localization using Database

Hi,

I've been looking at ASP.NET AJAX Javascript localization example by using embedded resource file in assembly and

setting the EnableScriptLocalization property in ScriptManager. It worked nicely, however, I would like to store the resources

in the database. ASP.NET 2.0 allows you to write your own Resource provider. See this articlehttp://msdn2.microsoft.com/en-us/library/aa905797.aspx

However, I haven't found any similar information on how to do that in ASP.NET AJAX.

Does anyone aware about this functionality in ASP.NET AJAX?

Hi,

The RecourceHandler in the ScriptManager is a static member of fixed type, you can't replace it with your own one.

So, there is no such elegant way to achieve it like the one in the article you mentioned.

No comments:

Post a Comment