troubleshooting Question

Asp:Label not displaying on web pages

Avatar of Juan Ocasio
Juan OcasioFlag for United States of America asked on
ASP.NET
1 Comment1 Solution51 ViewsLast Modified:
Hello all:

I have a old asp.net web form application I have been tasked to maintain.  I have a Site.Master page that I've added some server controls on.  This page mainly hold a menu bar with links to various other pages. When someone clicks on a link in a specific section of the menu, they are directed to a sub-folder containing other pages.  These pages are not linked to the master page.

So my issue is on these pages that are not linked, I have an asp:label control that I am trying to populate via ConfigurationManager.AppSettings.  The problem is when the page renders, nothing is showing up, not even the span that would've been created with the asp:label.

The purpose of this control is to display what environment the user is in.  I have it on the Site.Master and it works well, but on the individual page that is not associated with the Site.Master, it does not show up.

on Site.Master:
<asp:Label ID="EnvironmentDescr" runat="server" CssClass="environmentDesc" Text="<%$ AppSettings: EnvironmentDescription %>" />

on individual page:
<asp:Label ID="EnvironmentDescrDO20" runat="server" CssClass="environmentDesc" Text="<%$ AppSettings: EnvironmentDescription %>" />

Can someone please let me know what I am doing wrong?  I have other asp:label controls on the individual page and they're all working.

Many thanks for your assistance!

Juan
ASKER CERTIFIED SOLUTION
Juan Ocasio
Continuous Process Improvement Lead

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 1 Comment.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 1 Comment.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros