public JsonSearcher() : base() { this.inputBox = new JsonTextBox(); this.searchResults = new DataBox(); this.startSearchEvent = new JsonScriptObjectEventSource(); this.MinimumCharacterCount = 3; this.attacher = new JsonFunction(); this.attacher.ExecutionType = JavascriptExecutionTypes.OnWindowLoad; this.AddJsonFunction(this.attacher); this.AutoRegisterScript = true; this.Controls.Add(inputBox); this.Controls.Add(searchResults); this.Controls.Add(startSearchEvent); this.AddRequiredScript(typeof(JsonSearcher));//"naizari.javascript.jsoncontrols.jsonsearcher.js"); }