To add a text from a resource file into your SharePoint ASPX page you have to place this code where ever you want this text to places.
– MyResource: is the resource file name.
-MyName: is the resource entry key.
Your resource files must be placed in this directory:
all resource files in this directory are copied to the global resources for every web application when it’s creating.
if the webapplication already exists place the resources files in this directory:
where <port> is the the web application port