Click here to Skip to main content
Click here to Skip to main content
Articles » Web Development » ASP.NET » Samples » Downloads
 
Add your own
alternative version

A very standard, powerful and easy to use Sample and Library for working on RSS 2.0

, 18 Feb 2005 MIT
With this library, you can easily create some RSS 2.0 files for your site and/or use some RSS 2.0 files from other sites into your site.
namespace IranianExperts.RSS
{
	public class RSSImage
	{
		private string _uRL = "";
		private string _link = "";
		private string _title = "";
		private string _description = "";

		private int _width = 0;
		private int _height = 0;

		/// <summary>
		/// [Required] - The URL of the image file.
		/// </summary>
		public string URL
		{
			get
			{
				return(_uRL);
			}
			set
			{
				_uRL = value;
			}
		}

		/// <summary>
		/// [Required] - The URL of the site, when the channel is rendered, the image is a link to the site. (Note, in practice the image <title> and <link> should have the same value as the channel's <title> and <link> 
		/// </summary>
		public string Link
		{
			get
			{
				return(_link);
			}
			set
			{
				_link = value;
			}
		}

		/// <summary>
		/// [Required] - Describes the image, it's used in the ALT attribute of the HTML <img> tag when the channel is rendered in HTML.
		/// </summary>
		public string Title
		{
			get
			{
				return(_title);
			}
			set
			{
				_title = value;
			}
		}

		/// <summary>
		/// [Optional] - Text that is included in the TITLE attribute of the link formed around the image in the HTML rendering.
		/// </summary>
		public string Description
		{
			get
			{
				return(_description);
			}
			set
			{
				_description = value;
			}
		}

		/// <summary>
		/// [Optional] - The width of the image in pixels. Default value is 0. Maximum value must be 400.
		/// </summary>
		public int Width
		{
			get
			{
				return(_width);
			}
			set
			{
				if(_width < 400)
					_width = value;
			}
		}

		/// <summary>
		/// [Optional] - The height of the image in pixels. Default value is 0. Maximum value must be 144.
		/// </summary>
		public int Height
		{
			get
			{
				return(_height);
			}
			set
			{
				if(_width < 144)
					_height = value;
			}
		}

		/// <summary>
		/// Constructor
		/// </summary>
		/// <param name="url"></param>
		/// <param name="link"></param>
		/// <param name="title"></param>
		public RSSImage(string url, string link, string title)
		{
			_uRL = url;
			_link = link;
			_title = title;
		}

		#region Support
		public static string Owner
		{
			get
			{
				return("Dariush Tasdighi - From Tehran, Iran");
			}
		}

		public static string Version
		{
			get
			{
				return("1.0.0");
			}
		}

		public static string Support
		{
			get
			{
				return("Dariush@IranianExperts.com;DariushT@GMail.com;DariushTasdighi@Yahoo.com");
			}
		}

		public static string Homepage
		{
			get
			{
				return("http://www.IranianExperts.com;http://groups.yahoo.com/group/IranianExperts");
			}
		}

		public static string UpdatedDate
		{
			get
			{
				return("14 Feb 2005");
			}
		}
		#endregion
	}
}

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, along with any associated source code and files, is licensed under The MIT License

Share

About the Author

Dariush Tasdighi
Web Developer Sematec Ins.
Iran (Islamic Republic Of) Iran (Islamic Republic Of)
My experiences are:
 
HTML 5.0, CSS 3.0
JQuery, Angular JS, Bootstrap
 
MVC 5.0, WEB API, c#
 
My Site URLs:
http://www.IranianExperts.ir
http://www.IranianExperts.com
 
My Yahoo Group URL: http://groups.yahoo.com/group/iranianexperts
 
Mobile: 0098-912-108-7461
Address: Tehran, Tehran, Iran

| Advertise | Privacy | Terms of Use | Mobile
Web03 | 2.8.141220.1 | Last Updated 18 Feb 2005
Article Copyright 2005 by Dariush Tasdighi
Everything else Copyright © CodeProject, 1999-2014
Layout: fixed | fluid