Copied to clipboard

Flag this post as spam?

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


  • Mark 4 posts 24 karma points
    Jul 06, 2013 @ 16:25
    Mark
    0

    Acces Usercontrol property id within the usercontrol

    Hi guys, i would like to retrieve the property.Id of the current usercontrol within itself.. I am trying to build a photo gallery which one could attach to a mediafolder. Then on save i would like to auto generate thumbnails with a path something like '/documentId/uc_propertyId/mediaId.ext'.. Doing so without hardcoding any ids or aliases, because of situations in which there are two galleries on the same document.

    Thnx in advance!

    protected void Page_Load(object sender, EventArgs e)
    {
        _currentNodeId = int.Parse(Request.QueryString["id"]);
        Document d = new Document(_currentNodeId);
    
        foreach (Property p in d.GenericProperties)
        {
    
        }
    }
  • Jeroen Breuer 4861 posts 12138 karma points MVP 3x admin c-trib
    Jul 08, 2013 @ 12:16
    Jeroen Breuer
    0

    I know with DAMP I use some code to get the propertyId. Maybe that can help: http://damp.codeplex.com/SourceControl/latest#DigibizAdvanceMediaPicker/DAMP_DataType.cs

    Jeroen

  • Mark 4 posts 24 karma points
    Jul 09, 2013 @ 18:56
    Mark
    0

    Hey Jeroen,

    Thnx for your response! I ended up adding an extra textbox (only visible to admins) to the usercontrol, so the developer can now define a subfolder for each instance of the PhotoGallery. Thnx for all the help anyway.

    Greetings,

    Mark

  • 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