Ra3IDeN Ra3IDeN - 27 days ago 9
C# Question

How to correctly apply a resource to the text of a button?

I've been following the tutorials on msdn and for some reason the application can not find my resource.

Been reading this:
http://msdn.microsoft.com/en-us/library/ms227427.aspx

http://msdn.microsoft.com/en-us/library/ms247246%28v=vs.100%29.aspx

And In my application ive done this:

enter image description here

in the WebResource.resx ive done this:
enter image description here

Code in the webform:

<form runat="server">

<asp:Button runat="server" Text="<%$Resource:WebResource,TimerButton %>" />

</form>


but sadly my browser says:


"The resource object with key 'TimerButton' was not found."


It feels like ive read the documentation 100 times but i can not see what im missing.

Answer Source

Well i finaly found the soloution... I named my folder " App_GlobalResources folder" instead of "App_GlobalResources"... my mistake will hopefully be some1 elses salvation.