0

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!!

0

2 Answers 2

1

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.

Sign up to request clarification or add additional context in comments.

Comments

0

So, this is the code-behind way of accessing the resource. How to access a resource (which is in the Project) from an aspx page.

I've tried the implicit and explicit techniques: by using meta:keywords="Yourresourcekey", and <%$ Resources:ClassName, Keyword %>

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.