Hi all.
I am trying to internationalize my web application wich I developed in MVC 3.0.
I can read my values in .resx files from cshtml, but how can I read these values(in .resx files) from my .js files.
Is there any way to serialize or convert .resx files in JSON objects(in controllers in server side) and return that object.After that in this object I can read all ky/value pairs wothout any problem.
Is this possible or do you know any better solution of this problem.
Generaly asking: How to access values in .resx files from clients site javascript files .js ?
Thank You for reading this question and for everyone who can help me.
drilli
Member
18 Points
24 Posts
Pass resx files in client side as JSON or Javascript objects
Apr 10, 2012 07:29 AM|LINK
Hi all.
I am trying to internationalize my web application wich I developed in MVC 3.0.
I can read my values in .resx files from cshtml, but how can I read these values(in .resx files) from my .js files.
Is there any way to serialize or convert .resx files in JSON objects(in controllers in server side) and return that object.After that in this object I can read all ky/value pairs wothout any problem.
Is this possible or do you know any better solution of this problem.
Generaly asking: How to access values in .resx files from clients site javascript files .js ?
Thank You for reading this question and for everyone who can help me.