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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T14:03:04+00:00 2026-05-12T14:03:04+00:00

I think I might know the cause, but not how to fix it without

  • 0

I think I might know the cause, but not how to fix it without a lot of code rewriting(which I prefer to avoid).

I have

public class datecontrol : basecontrol
{
    private ImageButton _ImageButton;
    private TextBox _EditControl;
private CalendarExtender _CalendarExtender;
....
    public datecontrol{
      _ImageButton=new ImageButton();
      _EditControl=new TextBox();
      _CalendarExtender=new CalendarExtender();
      .....
      _CalendarExtender.TargetControlID=_EditControl.ID;
    }
}

and

public class basecontrol : Panel,INamingContainer
....

Now here is the strange part. _CalendarExtender gives errors on finding the ID for _EditControl as the TargetID. It sounded like a naming container problem, so I looked and looked and could not find anything. Then I looked with the debugger. _EditControl and _ImageButton both have their naming container set to this as expected, but _CalendarExtender has it’s naming container set to null.

I would love to try to fix this problem myself with _CalendarExtender.NamingContainer=this; but that is a read-only property.

The only reason I can figure out this could be happening is because _CalendarExtender inherits from ExtenderControl->Control. Where a Panel inherits from WebControl->Control.

Does anyone know something I could be missing or a workaround for this problem or something?

  • 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-05-12T14:03:04+00:00Added an answer on May 12, 2026 at 2:03 pm

    Ok, I was adding the calendar extender(later in code) to a different panel than the one containing the edit control, which I assume is why I got such an error..

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

Sidebar

Related Questions

I think it might have been asked before but i was unable to find
Today I think i might have learned something (not sure), i'm not really a
I have some PL/SQL code that I think might have a memory leak. Everytime
I know Python (and a bunch of other languages) and I think it might
I think I might have done something right, headByRating and headByName both refer to
I think I might be overtired but I cannot for the life of me
Here is something that I have came across in Scala that did not cause
I think I have something like programmer's OCD. I like my code to be
You might think that this question is already answered. However, I couldn't find the
I think I might be missing the point of having a logging framework for

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.