Last post Nov 20, 2010 12:51 AM by ityson
Jul 01, 2010 09:56 AM|Animatronic|LINK
Let's say that I have two project, one of them is my web application and the other one is my LIB project. I have some Resource files as Language.en-US.resx Language.es.resx
In my web application, I have added this LIB project as reference. I have some usercontrols.
What I want is to use these LIB's resources file as usercontrols' controls' text.
Let's say that I have a button like
<asp:Button ID="btnSearch" runat="server" OnClientClick="ClearDetails();return true;"
CssClass="button" Text="Search" OnClick="ButtonClicked">
So how can I reflect the resources' file content to buttons' Text
local resource asp:Localize culture
Jul 01, 2010 11:27 AM|whighfield|LINK
Maybe this might help http://forums.asp.net/t/1446280.aspx
Jul 01, 2010 12:17 PM|Animatronic|LINK
Thanks a lot for reply...But my case is different...I think its vice versa...
As I know that I can use GlobalResources like Text="<%$ Resources:Language, Button1%>" in html side...but What if my resource is in another DLL...How can I use this notation...
Sep 05, 2010 10:58 AM|TATWORTH|LINK
For further help on this, please try
MSDN Dot Net forum at http://forums.microsoft.com/MSDN/default.aspx?ForumGroupID=12&SiteID=1
Nov 20, 2010 12:51 AM|ityson|LINK
Follow the usage of a custom expression builder in the article
Extending the ASP.NET 2.0 Resource-Provider Model. You can add you resx files to a common assembly project. Make sure you set the resx file Access Modifier to Public. This will cover what you are trying to do.