Search code examples
c#asp.netautocompletedotnetnuke-module

Textbox AutoComplete ( call handler in .ascx page)


I want to call Generic Handler in .ascx page for textbox autocomplete in dotnetnuke module.

I use this code but not working

<script type="text/javascript">
    $(document).ready(function () {
        $("[id*=txtSearch]").autocomplete({ source: '<%=ResolveUrl("~/Search_CS.ashx" ) %>' });
    });      
</script>

Solution

  • You get an error in console. probably your autocomplete URL goes wrong when you call Generic Handler, and this doesn't relate with dotnetnuke.

    If you're new to javascript/Jquery please check this, for checking console log.