Digital Colony!
<<Return to Article

Binding a SmugMug Photo Gallery to an asp:DataList Control

This lab shows a SmugMug gallery RSS feed binded to an asp:DataList via the asp:XmlDataSource control. To load a SmugMug gallery on your own site, the first thing you need to know is the Gallery ID. This is visible in the url of the gallery.

When you first load up a gallery on the SmugMug site, the url will look like this:

http://criticalmas.smugmug.com/gallery/1838622#92081129

The subdomain is not important, which is why the code uses "www". The bold portion is your Gallery ID. The example below has 3 galleries to choose from in the drop down control. All sample code is located in the article.

Select Gallery



Referral Code

My SmugMug referral code is: IzodUqeQndZYc
It will save you $5 on any new account.

Digital Colony Copyright © 1999-2008 XHTML   508
This site uses Blogger, which is not 100% XHTML compliant.
Try...Catch Disclaimer: For brevity many examples do not include error handling. That is your responsibility.