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!
protectedvoidPage_Load(object sender,EventArgs e){
_currentNodeId =int.Parse(Request.QueryString["id"]);Document d =newDocument(_currentNodeId);foreach(Property p in d.GenericProperties){}}
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.
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!
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
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
is working on a reply...