Click here to Skip to main content
15,894,646 members
Articles / Web Development / HTML

Light Speed Inline Editing Using ASP.NET AJAX and Web Services: Part I

Rate me:
Please Sign up or sign in to vote.
4.81/5 (21 votes)
6 Apr 2008CPOL6 min read 140K   4.2K   95  
JavaScript + AJAX solution for inline editing in a grid.
using System;

namespace TargetProcess.DaoTraining.TransferObjects
{
	public class Order
	{
		private int _orderID;
		private Decimal _freight;
		private string _shipName;
		private string _shipAddress;
		private string _shipCountry;
		private Priority _priority;
		private bool _isRushOrder;
		private DateTime? _supplyDate;

		public Order()
		{
		}

		public Order(Decimal freight,
		             string shipName, string shipAddress, string shipCountry, Priority priority, bool isRushOrder, DateTime? supplyDate)
		{
			_freight = freight;
			_shipName = shipName;
			_shipAddress = shipAddress;
			_shipCountry = shipCountry;
			_priority = priority;
			_isRushOrder = isRushOrder;
			_supplyDate = supplyDate;
		}

		public Order(int orderID, Decimal freight,
		             string shipName, string shipAddress,
		             string shipCountry, Priority priority, bool isRushOrder,DateTime? supplyDate)
			:
				this(freight, shipName, shipAddress, shipCountry, priority, isRushOrder, supplyDate)
		{
			_orderID = orderID;
		}

		public Priority Priority
		{
			get { return _priority; }
			set { _priority = value; }
		}

		public int OrderID
		{
			set { _orderID = value; }
			get { return _orderID; }
		}


		public Decimal Freight
		{
			set { _freight = value; }
			get { return _freight; }
		}

		public string ShipName
		{
			set { _shipName = value; }
			get { return _shipName; }
		}

		public string ShipAddress
		{
			set { _shipAddress = value; }
			get { return _shipAddress; }
		}


		public string ShipCountry
		{
			set { _shipCountry = value; }
			get { return _shipCountry; }
		}

		public bool IsRushOrder
		{
			get { return _isRushOrder; }
			set { _isRushOrder = value; }
		}

		public DateTime? SupplyDate
		{
			get { return _supplyDate; }
			set { _supplyDate = value; }
		}
	}
}

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
Belarus Belarus
Andrew Golik is a software professional working in Minsk, Belarus.
He enjoys design infrastructures based on object oriented paradigm. His programming experience includes ASP, ASP.NET, .NET, COM, JAVA, PHP, DHTML, AJAX, blah blah blah....

Andrew Golik's Blog

Comments and Discussions