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

Microsoft Personal Web Site Starter Kit – Random Image Web User Control

Rate me:
Please Sign up or sign in to vote.
2.33/5 (3 votes)
29 Mar 20064 min read 53.1K   412   33  
How to create a web user control to show a random photo on the home page of Microsoft Personal Web Site Starter Kit
public class Photo {

	private int _id;
	private int _albumid;
	private string _caption;

	public int PhotoID { get { return _id; } }
	public int AlbumID { get { return _albumid; } }
	public string Caption { get { return _caption; } }

	public Photo(int id, int albumid, string caption) {
		_id = id;
		_albumid = albumid;
		_caption = caption;
	}

}

public class PhotoExt : Photo
{

    private int _page;

    public int Page { get { return _page; } }

    public PhotoExt(int id, int albumid, string caption, int page)
        : base(id, albumid, caption)
    {
        _page = page;
    }
}

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
Canada Canada
Angel Anichin is experienced .Net developer living in Canada.

Expertise: ASP.NET, C#, MS Content Management Server, MS SQL Server, Oracle, HTML, JavaScript, CSS

Hobbies: Digital Photography, Skiing

Comments and Discussions