I want to store some notification messages (nearly 30 messages). Follows some rules that should be applied in the solution: This will be shown to user in certain cases.
- All messages should not be hardcoded.
- What it the current standard format to store these kind of common messages outside of the source and access it in source.
- This messages should be accessed anywhere in C# MVC application like controller, model, view as well as script.
I had 2 possibilities:
Stored in DB - But this will take more hit and more load if i get everytime. Because every page load we need to fetch some messages.
Stored in XML - By calling particular class from application start and get xml data and use throughout the mvc application.
Is these two possibilities are the only ones?
Please suggest me if there is any other efficient way to store and access these common messages.
Thanks in advance.