Associate a Photo Album with a News/Annoucement Article?

Topics: Developer Discussion, Help, Request
Jul 8, 2008 at 1:26 PM
Am I missing something on how to associate a photo album with a new article under News? I select my Album but it never displays when viewing the article in question. The correct AlbumID is written to the dbo.annoucements table. Has somebody already fixed this or did I break it?

Jul 11, 2008 at 7:30 AM

Sorry, but I'm not able to reproduce this issue at the moment.
Can you please post some more information?

Aug 23, 2008 at 2:31 AM
I noticed in older changesets in App_Code/BLL/News.vb:

Lines 95 and 96 read - 



qry As New Query(Tables.Images)

qry.AddWhere(Images.Columns.Album, albumid)


They should say Image not Images.

GetImages() has been reworked it seems in newer changesets.

Aug 23, 2008 at 2:59 AM
Robert - you resolved this issue for me!  Thanks!!  I have no idea what changeset I;m using at this point. Would be nice if each of the files contained some header information about changeset #!  :)

Aug 23, 2008 at 3:07 AM
Edited Aug 23, 2008 at 1:45 PM
Robert - It looks like the A HREF for each photo was trying to fetch an Album with the ID of each photo. So I changed that line to 

<a href='<%# "../UserControls/imagefetch.ashx?size=2&ImageID=" & CSTR(Eval("id")) %>' target="_blank">