Click here to Skip to main content
15,896,512 members
Articles / Web Development / HTML

Generic Data Exchange Framework with AJAX

Rate me:
Please Sign up or sign in to vote.
3.69/5 (9 votes)
15 Mar 2008CPOL6 min read 42.7K   106   33  
A generic data exchange framework with AJAX.
using System;
using System.Collections;

namespace DotNetRemoting
{
	/// <summary>
	/// Summary description for AltEmplSource.
	/// </summary>
	public class AltEmplSource
	{
		public AltEmplSource()
		{
		}

		public static ArrayList GetEmplSource()
		{
			Employee emp1 = new Employee();
			emp1.Name = "Tom";
			emp1.SName = "Debua";
			emp1.Title = "Mr.";
			emp1.Position = "Manager";
			emp1.Date = new DateTime(2004, 4, 4);
			emp1.Address.City = "Toronto";
			emp1.Address.Phone = "(045)6542 2322";
			emp1.Age = 44;
			emp1.PictureUrl = "http://members.iinet.net/%7Eletchik/DotNetRemoting/images/5.gif";

			Employee emp2 = new Employee();
			emp2.Name = "Anna";
			emp2.SName = "X";
			emp2.Title = "Mrs";
			emp2.Position = "Director";
			emp2.Date = new DateTime(2002, 4, 1);
			emp2.Address.City = "Paris";
			emp2.Address.Phone = "(043)7809 63555";
			emp2.Age = 33;
			emp2.PictureUrl = "http://members.iinet.net/%7Eletchik/DotNetRemoting/images/4.gif";
			emp2.Married = true;
			emp2.Salary = 78654;


			ArrayList empArr = new ArrayList();

			empArr.Add(emp1);
			empArr.Add(emp2);
 
			return empArr;			 
		}
	}
}

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 Code Project Open License (CPOL)


Written By
Web Developer
Australia Australia
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions