resource file management in asp.net

Posted by Sahoo under JavaScript on 3/4/2012 | Points: 10 | Views : 1602 | Status : [Member] | Replies : 2
Hi

Can anybody suggest me best way to access resource file in java script file in c# mvc project.My project is multilingual.




Responses

Posted by: Sahoo on: 3/4/2012 [Member] Starter | Points: 25

Up
0
Down
HI,
ex. I have a button on javascript file which save data on click.I want to display different value for it depending upon logged in user language which is I store in session.My code looks like-
<input type='button' onclick='saveMe()' value='Save'/>"

Please help me.
Thanks in advance.

Sahoo, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sahoo on: 3/5/2012 [Member] Starter | Points: 25

Up
0
Down
Hi,

I have got some solution but not fully functional .I can access it in JavaScript defined in <head> section using below code.
alert("<%= Resources.Resource.PropertyName%>");

But unable to access in external java script file.

Please if any one know the trick suggest me.


Many many thank in advance.



Sahoo, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response