Click here to Skip to main content
15,897,519 members
Articles / Web Development / ASP.NET

Photo album browsing control

Rate me:
Please Sign up or sign in to vote.
4.64/5 (30 votes)
1 Dec 20044 min read 345.2K   6.8K   138  
A web control that allows photo album browsing
using System;
using System.Globalization;

namespace Codefresh.PhotoBrowserLibrary
{
	/// <summary>
	/// The superclass for all photo library entity objects..
	/// </summary>
	[Serializable]
	public abstract class PhotoObjectBase
	{

		private int id = -1;
		protected SessionToken token;

		/// <summary>
		/// Initializes a new PhotoObjectBase object.
		/// </summary>
		protected PhotoObjectBase()
		{
		}

		/// <summary>
		/// Initializes a new PhotoObjectBase object.
		/// </summary>
		/// <param name="token">A reference to the current SessionToken object.</param>
		protected PhotoObjectBase(SessionToken token) :  this()
		{
			this.token = token;
		}

		/// <summary>
		/// Sets the ID of the object.
		/// </summary>
		/// <param name="id">The ID of the object.</param>
		internal void SetId(int id)
		{
			this.id = id;
		}

		/// <value>The unqiue ID of the object.</value>
		public int Id
		{
			get
			{
				return id;
			}
		}

	}

}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Web Developer
United Kingdom United Kingdom
I'm currently working in London working on a variety of technologies.

Comments and Discussions