Application Setting

S

Scott M.

In an ASP .NET 2.0 Web Application Project using C#, how do I retrieve an
application setting I've created in the Project Properties designer that is
written into the <applicationSettings> section of web.config.

Please note: I'm asking about <applicationSettings>, not <appSettings> and
I'm asking about C#, so My.Settings is not the desired route here.

Thanks.
 
S

Scott M.

I've got it. You must instantiate the Properties.Settings object manually
and then any application settings will show up in intellisense as read-only
variables.

Properties.Settings s = new Properties.Settings();
lblCopyright.Text = s.copyright;
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top