CC
-
9/8/2012 7:09:12 PM
Reload Attachment Light Box Gallery Images
I have a web part zone that contains two web parts: Attachment Light Box Gallery and a custom Product selector. When the user selects a product in the product selector, I want the Attachment Light Box Gallery to show the images related to the selected product. I do not want to do a Response.Redirect, because I will lose other data the user has entered. This is the code I am using. I have confirmed it is reaching the att.ReloadData() method, but it does not load the new images. Any suggestions?
private void UpdateImageGalleryPath(TreeNode selected) { if(string.IsNullOrEmpty(AttachmentGalleryControlID)) return;
CMSWebParts_Attachments_AttachmentLightBoxGallery att = ParentZone.FindWebPart(AttachmentGalleryControlID) as CMSWebParts_Attachments_AttachmentLightBoxGallery;
if (att != null) { att.Path = selected.NodeAliasPath; // tried all of these individually & in combination att.ClearCache(); att.ReloadData(); att.DataBind(); } }
|