开发者

Localization in javascript via IHttpHandlers

开发者 https://www.devze.com 2023-02-18 04:09 出处:网络
What\'s the best way to acces .resx files in a Http Handler in AS开发者_运维知识库P.NET? I need to access them in javascript. My goal is to serialize them in JSON via a IHttpHandler. The problem is t

What's the best way to acces .resx files in a Http Handler in AS开发者_运维知识库P.NET?

I need to access them in javascript. My goal is to serialize them in JSON via a IHttpHandler. The problem is that I simply can't figure out which .resx I should load according to request language.

Thanks!


you can use GetGlobaResourceObject or GetLocalResourceObject as here

http://msdn.microsoft.com/en-us/library/ms227982.aspx

0

精彩评论

暂无评论...
验证码 换一张
取 消