addNamespace("Ajax.Web");Ajax.Web.NameValueCollection = function() { this.__type = "System.Collections.Specialized.NameValueCollection"; 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.DataSet = function(tables) { this.__type = "System.Data.DataSet, System.Data"; this.Tables = new Array(); this.addTable = function(table) { this.Tables.push(table); } if(tables != null) { for(var i=0; i