Copied to clipboard

Flag this post as spam?

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


  • Umbraco Newbie 22 posts 124 karma points
    Oct 25, 2016 @ 21:43
    Umbraco Newbie
    0

    Retrieve property value in c# class

    Hi Can anyone show me an example of how to get the property value from a c# class.

    I have this property emailFromAddress which is in tab Email Settings, how can I retrieve the value

    i.e.

    public class SomeClass
    {
    public bool someMethod()
    {
    var emailAddress = what is needed here.
    }
    }
    

    Thanks George

  • Alex Skrypnyk 6175 posts 24186 karma points MVP 8x admin c-trib
    Oct 26, 2016 @ 17:18
    Alex Skrypnyk
    0

    Hi George,

    Do you want to retreive property value from Umbraco node?

    What is SomeClass doing?

  • Umbraco Newbie 22 posts 124 karma points
    Oct 26, 2016 @ 18:46
    Umbraco Newbie
    0

    Hi Alex

    Thanks for the reply, what I have is a multiple textbox which will have a number of email addresses.

    I need to get the data from the textbox so that I can loop over them and do some work in my .cs class.

    If it was in the directory, I could have done umbraco.library.directoryvalue!! but its not, so how can I get the value from the textbox.

    Thanks George

Please Sign in or register to post replies

Write your reply to:

Draft