Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Eli 3 posts 73 karma points
    1 week ago
    Eli
    0

    Access .NET Properties.Settings in Umbraco HTML

    Hi,

    I am new to Umbraco and looking for accessing my settings file (in the template file), which is usually done by Properties.Settings.Default...

    Can't manage to make this happen.

    Cheers

  • Alex Skrypnyk 4888 posts 17641 karma points MVP 2x admin c-trib
    1 week ago
    Alex Skrypnyk
    0

    Hi Eli

    What setting file did you mean? AppSettings? You can get settings by

    string value = System.Configuration.ConfigurationManager.AppSettings[key];
    

    Alex

  • Eli 3 posts 73 karma points
    1 hour ago
    Eli
    0

    Hi Alex, Thanks. But how can I add some properties to the Umbraco Web.Config file? How can I be sure these properties will be overridden some time? Its an Umbraco file, and I want to add properties on top of it.

    Thanks.

Please Sign in or register to post replies

Write your reply to:

Draft