I have One application which has Webforms (.aspx) pages and also MVC3, both. I intend to keep labels, message text and other text in a .resx file. Many of the keys/values in .resx file are common across both webforms and MVC.
I would prefer not to have to maintain 2 resource files containing the same resources -- one file in App_GlobalResources (for webforms) and another .resx file somewhere else in another folder, for MVC.
Is there any way to share/access One Resource file between webforms pages and MVC code? (at present I have 2 files, and it is a pain to ensure they are in sync).
Thanks!
You can do this by adding an existing item as link feature http://msdn.microsoft.com/en-us/library/9f4t9t92%28v=vs.80%29.aspx.