Copied to clipboard

Flag this post as spam?

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


  • Sherry Ann Hernandez 320 posts 344 karma points
    Mar 16, 2011 @ 07:47
    Sherry Ann Hernandez
    0

    Getting and setting the media picker value

    Hi,

    I have this media picker on a custom section

     

    DataTypeDefinition

     

     

    _dMediaPicker = DataTypeDefinition.GetDataTypeDefinition(1035);

    _mediaPicker =

     

    new umbraco.editorControls.mediaChooser(_dMediaPicker.DataType.Data, true, false);

    itemImage.Controls.Add(_mediaPicker);

     

     

     

    My problem is on save I can't get the node value of the selected image.

    I'm using this.

    _mediaPicker.Value

     

    What am I doing wrong?

Please Sign in or register to post replies

Write your reply to:

Draft