Solved

Dynamic Loading of Controls

Posted on 2004-10-09
3
169 Views
Last Modified: 2013-12-24
I'm trying to add controls to a page dynamically with C#.

On one page I have a button that when clicked calls:

controls.People p = new controls.People();                              
plcChildren.Controls.Add(p);

On the Page Load of the People control I want to bind a datagrid that is declared in the mark up, but I keep getting the exception that the datagrid is not defined. I also tried by overrideing the Render method. How do you make the control load all its data.



0
Comment
Question by:Chrisbzd
3 Comments
 
LVL 5

Accepted Solution

by:
LlamaJoe earned 50 total points
ID: 12310575
for 50 points....

INamingContainer - inherit, you must - for composite or repeating controls.
0

Featured Post

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Renaming file after uploading in Coldfusion 4 270
PHP v5.4 and Class 'mysqli' not found  error 8 161
Web Modal Window 1 78
How does Amazon build their pages? 3 76
When setting up new project requests for our site, one of the most powerful tools our team has available to use is Axure (http://www.axure.com/). It’s a tool for creating software and web prototypes that can function and interact as if it were the a…
Objective of This Article In 1990’s, when I was a budding software professional, I had a lot of confusion about which stream or technology, I had to choose to build my career. In those days, I had lot of confusion like whether to choose System so…
The purpose of this video is to demonstrate how to automatically show related posts at the bottom of a blog post in WordPress. This will be demonstrated using a Windows 8 PC. Plugin “Yet Another Related Posts Plugin” will be used. Go to your…
The purpose of this video is to demonstrate how to exclude a particular blog category from the main blog page. This is can be used when a category already has its own tab, or you simply want certain types of posts not to show up on the main blog. …

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question