Пример #1
0
        private static HtmlTag GetCreateScript(string textBoxId, string url)
        {
            const string template =
                @"$.autoCompleteExtensions.createAutoComplete('{0}','{1}');";
            var script = string.Format(template, textBoxId, url);

            return(JQueryHelpers.WrapWithJQueryReadyAndScriptTag(script));
        }
Пример #2
0
        private static HtmlTag GetResultScript(string textBoxId, string valueBoxId)
        {
            const string resultTemplate =
                @"$.autoCompleteExtensions.setupGetResult('{0}','{1}');";
            var script = string.Format(resultTemplate, textBoxId, valueBoxId);

            return(JQueryHelpers.WrapWithJQueryReadyAndScriptTag(script));
        }