Avatar of Juan Ocasio
Juan Ocasio
Flag for United States of America asked on

Asp:Label not displaying on web pages

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
ASP.NET

Avatar of undefined
Last Comment
Juan Ocasio

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Juan Ocasio

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck