Create Resources files in MVC Step by Step
To generate resources files in MVC ,you should follow the below steps:
- In the project structure, navigate to the
App_GlobalResources
folder, and within this folder, create two resource files: one named Labels.resx
and the other named Messages.resx
.
![App_GlobalResources](https://debug.to/?qa=blob&qa_blobid=11599773430613201107)
2. In the Labels.resx
file, define multiple name-value pairs that are used throughout my application.
![Resources file](https://debug.to/?qa=blob&qa_blobid=18385403320561607211)
3. Access the LoginTitle
from the resource file.
@Resources.Labels.LoginTitle