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

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...dnn:label text not showing up dnn:label text not showing up
Previous
 
Next
New Post
7/24/2006 2:10 PM
 

I have some controls I'm working on and trying to get the text to show up for my label control, but having no luck. Can anyone think of what I'm missing?

 I have the following code at the very top of the HTML page- 

<%@ Register TagPrefix="dnn" TagName="Label" Src="~/controls/LabelControl.ascx" %>
<%@ Register TagPrefix="Portal" TagName="Audit" Src="~/controls/ModuleAuditControl.ascx" %>

I have the following also in HTML:

<dnn:label id="plGradingPeriod" runat="server" suffix=":"></dnn:label>

I have a resource file with the exact same name as my control file. Here is my definition of plGradingPeriod in my resource file which is located in App_LocalResources, as usual.

Name = plGradingPeriod.Text     Value= Select grading period

Name= plGradingPeriod.Help        Value= Select the grading period for this report

My text does not show up, nor does the tip. I have other controls I've built and successfully used this control and am stumped. Can anyone think of what I've left out? Thanks in advance for any help.

Patricia

 
New Post
7/24/2006 9:55 PM
 

Maybe turn on the debug and see what the variable Me.LocalResourceFile is.  You can set it to the correct value in the Page_Init if it is not right.  Something like

Me.LocalResourceFile = Me.TemplateSourceDirectory & "/App_LocalResources/XXX.ascx.resx"


Robert Tango
www.workcontrol.com
Custom Modules: UserManager|UserDirectory|UserImport|PortalSSO
 
New Post
8/17/2006 10:03 AM
 

I'm working on my own module. It's a fresh module, with only a couple of labels.

I face a similar issue. When I'm logged in as host or admin, I can see the dnn:label text. When I'm logged in as any other non-admin user, I only see the ?-icon. I can click on it but I can not see the help-text. I can see the help-text when logged in as host or admin.

I see nothing in the log file.

What can this be? This is from ny ascx-page:

<dnn:Label ID="lblUserName" runat="server" ControlName="lblUserName" Suffix=":">

and this from my resx-file:

 <data name="lblUserName.Text" xml:space="preserve">
    <value>Full Name</value>
  </data>

 
New Post
8/17/2006 11:12 AM
 
remove the "xml:space="preserve"

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
8/18/2006 4:27 AM
 

I see that the xml:space="preserve" is being made up automatically, when I use VS2005 to write in the resx file. I did remove these manually from the file, but it did not help.

Then I tried to give the non-admin user edit-rights for my module. Now I was able to see text, but the issue is that i now also see the Add Content link in the bottom and as a dropdown next to the title in the top.

So either I have to find a way to remove these links or

I have to get the non-admin user see the dnn:label text

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...dnn:label text not showing up dnn:label text not showing up


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