Binding asp:Label text to an appSetting

julieistanbul

New Member
I've taken over maintenance on an ASP.NET WebForms project and I'm lost as to how the previous developer implemented some of the features. Basically he has an empty Label control in a master page:\[code\]<asp:Label ID="MyLabelControl" runat="server"></asp:Label>\[/code\]And this as an applicationSetting in Web.Config:\[code\]<setting name="MyLabelControl" serializeAs="String"> <value>Test</value></setting>\[/code\]And somehow the label is populated with the value of the application setting. I've searched everywhere and can't find where he is binding the setting's value to the label. If it was me, I would do it in the Page_Load method for the master page, but this is empty. Is there some special binding thing that I don't know about?I've done some basic WebForms work before, but prior to this most of my ASP.NET work has been in MVC with Razor. Yes, I'm learning things backwards :). Any help you can give me in understanding how he is doing this would be great. Thanks!
 
Back
Top