Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0User Control Resource Field ProblemUser Control Resource Field Problem
Previous
 
Next
New Post
11/17/2006 6:18 AM
 

Hi all,

I just wanted to Localize my UserControls defined in Module Templates with my OWN Resource files.

I handle that in my usercontrols like

<asp:Label id="lbUsername" runat="server" CssClass="DefaultTextBold" Text="<%$ Resources:PortalResources, LoginUsername %>"></asp:Label>

The deployment tool of VS 2005 creates the bin and usercontrols folders. The bin directory contains the Resource depended dll files:

App_GlobalResources.dll

I added all related file to DNN bin and Desktopmodules folders. Everything is working fine except of the Resourcestrings. I received the Error ModuleLoadException: Resource string "LoginUsername" could not be found.

What did I wrong?

Need urgent help. Thanks in advance, Ralf

 
New Post
11/17/2006 6:59 AM
 

i'm not sure what you are trying to do here, you could do this from code beside / code behind:

me.lblUsername = me.UserInfo.UserName

 


Erik van Ballegoij, Former DNN Corp. Employee and DNN Expert

DNN Blog | Twitter: @erikvb | LinkedIn: Erik van Ballegoij on LinkedIn

 
New Post
11/17/2006 8:46 AM
 

HI Eric,

thanks for reply. I'm trying to explain a bit more detailed:

My UserControls are designed in VS2005 and inherited by PortalModuleBase. They are running fine in DNN Portal.

Here's my problem:

My VS2005 Project with UserControls contains one Global_Resource File, where all Resource Fields are stored. When I try to bind my e.g. asp:label to a resource field it runs fine in the asp.net standalone application. But in DNN it fails with exception listed in prev. Thread.

btw: If I read the Fields from resource file programmatically it works fine. But it's a lot more work for me to modify the whole bunch of usercontrols to act programmatically.

Ralf

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0User Control Resource Field ProblemUser Control Resource Field Problem


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out