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 82669
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T21:39:11+00:00 2026-05-10T21:39:11+00:00

Inside my page, I have the following: <aspe:UpdatePanel runat=server ID=updatePanel> <ContentTemplate> <local:KeywordSelector runat=server ID=ksKeywords

  • 0

Inside my page, I have the following:

<aspe:UpdatePanel runat='server' ID='updatePanel'>     <ContentTemplate>         <local:KeywordSelector runat='server' ID='ksKeywords' />     </ContentTemplate> </aspe:UpdatePanel> 

The KeywordSelector control is a control I define in the same assembly and local is mapped to its namespace.

The control is made up of several other controls and is defined as such:

<%@ Control Language='C#' AutoEventWireup='true'             CodeBehind='KeywordSelector.ascx.cs'             Inherits='Keywords.KeywordSelector' %> 

and has quite a few server controls of its own, all defined as members in the .designer.cs file.

However, during no part of the control’s lifecycle does it have any child control objects nor does it produce HTML:

  1. All of the members defined in the .designer.cs file are null.
  2. Calls to HasControls return false.
  3. Calls to EnsureChildControls do nothing.
  4. The Controls collection is empty.

Removing the UpdatePanel did no good. I tried to reproduce it in a clean page with a new UserControl and the same thing happens.

I am using ASP.NET over .NET Framework 3.5 SP1 with the integrated web server.

What am I missing here?

Update #1: Following Rob’s comment, I looked into OnInit and found that the UserControl does not detect that it has any child controls. Moreover, CreateControlCollection is never called!

  • 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. 2026-05-10T21:39:12+00:00Added an answer on May 10, 2026 at 9:39 pm

    Well, I’ve found the problem(s):

    1. User Controls, as opposed to Custom Controls must be registered one-by-one in the web.config file. Do this:

      <add tagPrefix='local' tagName='KeywordSelector' src='~/KeywordSelector.ascx' />

      instead of:

      <add tagPrefix='local' namespace='Keywords' assembly='Keywords' />

    2. You should never place a WebControl in the same directory as the Control that is using it. This is downright silly. Read about it here.

    Thanks for the help. Now if only I could mark my own answer as the answer…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following markup inside a master page <html xmlns=http://www.w3.org/1999/xhtml > <head runat=server>
I have the following page with a black canvas inside of it: There, the
I have an .ascx control inside la page. In that control, I have a
I'm using asp.net with url rewrite . Inside Page Load I have the following
I have the following function call inside a jsp page. jQuery(function($){ $(#product).mask(99/99/9999,{placeholder: }); });
Inside of my View page I have the following line: @Model.RenderedMarkdown RenderedMarkdown is generated
I have following page in which there is a div menu. Inside menu we
Please help. I have page login/auth.gsp with the following code inside the body <div
I have the following MyAwesomeControl (user control) It has a text box inside it.
I have the following scriptlet inside a JSP page. File f = new File(//WEB-INF//music//rock//Evanascence//Fallen//text.txt);

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.