Copied to clipboard

Flag this post as spam?

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


  • Amigo 231 posts 506 karma points
    Sep 14, 2010 @ 14:25
    Amigo
    0

    retreiving parameter from macro in usercontrol

    I have a usercontrol that i use via a macro on my page.
    the macro has a parameter "top" (number), but how can i retreive the "top" from the macro in my usercontrol?
    I have created a public propperty in my usercontrol but its not getting set....

  • Patrik Wibron 40 posts 67 karma points
    Sep 14, 2010 @ 14:31
    Patrik Wibron
    0

    Hi!

    Are you using getters/setters for your properties used by your macro? Look at this example:

    private string _myProperty;
    public string MyProperty {
      get { return _myProperty; }
      set { _myProperty = value; }
    }


    Patrik

  • Amigo 231 posts 506 karma points
    Sep 14, 2010 @ 14:39
    Amigo
    0

    yes i doo, and its CASE SENSITIVE... doooooohhhhhh...
    So now its working....

    Sorry, thanks for help ;-)

  • 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