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 Displaying a SmugMug Gallery with ASP.NET.

Select Gallery



Referral Code

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

Digital Colony is the technical web site for Michael Allen Smith of Seattle, WA.

Labs

labs

Support

Your purchases that start here support Digital Colony!

Layout

The Digital Colony Labs layout is based off the 2 column design by Matthew James Taylor.