addNamespace("Ajax.Web"); Ajax.Web.NamevalsueCollection = function() { this.__type = "System.Collections.Specialized.NamevalsueCollection"; this.add = function(key, value) { if(this[key] == null) { this[key] = value; } } this.getKeys = function() { var keys = []; for(key in this) if(typeof this[key] != "function") keys.push(key); return keys; } this.getValue = function(key) { return this[key]; } this.toJSON = function() { var o = this; o.toJSON = null; delete o.toJSON; return AjaxPro.toJSON(o); } } addNamespace("Ajax.Web"); Ajax.Web.DataTable = function(columns, rows) { this.__type = "System.Data.DataTable, System.Data"; this.Columns = new Array(); this.Rows = new Array(); this.addColumn = function(name, type) { var c = new Object(); c.Name = name; c.__type = type; this.Columns.push(c); } this.toJSON = function() { var dt = new Object(); dt.Columns = []; for(var i=0; i