Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8234021
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T18:20:16+00:00 2026-06-07T18:20:16+00:00

In a WebUserControl I have an input element and I want it to display

  • 0

In a WebUserControl I have an input element and I want it to display a list of values using Jquery Autocomplete. It isn’t working at all.

This is the script for populating the list:

$(document).ready(function() {    
    var availableTags = [
            "ActionScript",
            "AppleScript",
            "Other one"
            ];
    $("#listaCecos").autocomplete({
        source: availableTags
    });
});

I stablished a breakpoint and found:

  • When the .autocomplete line gets executed, $("#listaCecos") seems to be uninitiallized. In the console it shows the following: []
  • After the page has loaded completely, $("#listaCecos") shows the element correctly [<input id=​"listaCecos" name=​"listaCecos">​]
  • Once the page has been loaded, I can execute the .automcomplete code (above code block) on the console and the input start to work OK.

So, I suppose it is not working because when .autocomplete script is executed, the input element hasn’t been loaded properly (it is inside a webusrcontrol and it is invisible at the moment of the initial page load).

Please help me to identify where and when should I put the autocomplete set up script so the input gets properly populated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T18:20:17+00:00Added an answer on June 7, 2026 at 6:20 pm

    I managed to solve it. The input is inside an UpdatePanel and it replaces its contents so the autocomplete configuration is lost.

    The solution was to re-configure the autocomplete feature on each end_Request:

    $(document).ready(function() {
        Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler);
    
        function EndRequestHandler(sender, args) {
            var availableTags = [
                "ActionScript",
                "AppleScript",
                "ceshar"
                ];
            $(".listaCecos").autocomplete({
                source: availableTags
            });
        } 
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This thing is driving me nuts. I have a UserControl that is called WebUserControl.
I have made a webusercontrol on my asp.net webforms application. But I get this
I have a dropdown inside a webusercontrol which I want to use on 5
I am creating a WebUserControl in ASP.net and want to be able to access
I want to create a WebUserControl (not a custom control) in asp.NET (C#). I
In a Visual Studio website, I have created a user control. This control is
I have an ASP.NET repeater, whose ItemTemplate is a WebUsercontrol named ProviderControl. <asp:Repeater ID=rep
In my web app (asp.net C#) I have menus as All, Education, Fun, Comedy.
I am having a default page namely default.aspx in this i will have panel.
I'm doing a WebUserControl, and I want to add a property that show a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.