Often times, I have encounter questions regarding dynamically creating controls, specifically ones related to the ASP.NET AJAX Control Toolkit. Today, I was working with an application where I needed to create a dynamic CalendarExtender and thought I would post the results.
Here is a simple example of how to create a dynamic CalendarExtender from code-behind:
In the ASPX, I have just a simple PlaceHolder where I append the dynamically created controls:
Hi, my name is Damien White. I'm a software architect with over 20 years of experience. I simply love coding! I have a driving passion for software development, and a thirst for knowledge that cannot be quenched. I enjoy writing Web and Mobile applications, and I'm happy to share what I know in my quest to learn as much as possible.