Copied to clipboard

Flag this post as spam?

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


  • Eddie Foreman 215 posts 288 karma points
    Aug 20, 2010 @ 15:36
    Eddie Foreman
    0

    Passing true/false into usercontrol via macro

    Hi All

    I'm sure this is straight forward, but I can't get the value of a checkbox to pass to a usercontrol via a marco. The checkbox has an alias of regEmail.

    usercontrol:

            ...
    public bool ProcessEmail {
    get { return _processEmail; }
    set { _processEmail = value; }
    }
    ...
    private bool _processEmail = true;

    macro:

    ... ProcessEmail="[#regEmail]" ...

    Also tried int for the usercontrol method and variable and number for the macro parameter type.

    Any ideas?

    Thanks

    Eddie

  • Magnus Eriksson 122 posts 362 karma points
    Aug 20, 2010 @ 15:44
    Magnus Eriksson
    0

    What happens if you hard code the bool value, e.g. ProcessEmail="False" ?

    Regards,
    Magnus

  • Eddie Foreman 215 posts 288 karma points
    Aug 20, 2010 @ 16:56
    Eddie Foreman
    0

    Hi Magnus

    It turns out it was another macro parameter that was causing the problem :-)

    Thanks

    Eddie

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies