how to access resource file using asp.net framework?? what is the code to access resource file from default.aspx?? where it is to be inserted? please tell me the steps precisely? thanks!!
2 Answers
You can use the following command:
this.GetGlobalResourceObject("YourclassName", "Yourresourcekey");
or
if the Resource is in the Project as a Resource file.
you do something like:
var o = MyProject.Resource1.Setting;
where MyProject is the ProjectName, and the Resource1 is the name of the Resource inside the project.