You do not need the references. Here are a couple ways to figure out the album ID without them:
* Modify the GSP source code to publish the current album ID in a way that is accessible by your app. For example, you could add a line to the InitializePage function in GalleryPage.cs that assigns the current album ID to the HTTP context or session:
Code:
HttpContext.Current.Items["AlbumId"] = this.GetAlbumId();
or
Code:
Session["AlbumId"] = this.GetAlbumId();
Then in the page load event of your app you could retrieve this data.
* Write code in your app to retrieve the album ID from the query string parameter 'aid'. Note, however, that this parameter is not present in some cases, such as when a single media object is being shown. In that case, the 'moid' parameter indicates the media object ID and GSP is able to determine the album ID from that.
Hope this helps.
Roger Martin
Creator and Lead Developer of Gallery Server Pro