Solved

Dynamic Loading of Controls

Posted on 2004-10-09
3
171 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Web Expression 4 + PHP v5.5 2 60
Adobe Dreamweaver Remote database test scripts vunerabilities? 3 132
Dreamweaver server behavior gone 6 188
Annoying "thing" blocks my view 4 144
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…
Dramatic changes are revolutionizing how we build and use technology. Every company is automating, digitizing, and modernizing operations. We need a better, more connected way to work together as teams so we can harness the insights from our system…
The purpose of this video is to demonstrate how to manually back up a WordPress Database. This will be demonstrated using a Windows 8 PC. The Host used will be IPage.com Log into your Hosting account. IPage will be used for demonstration : Locat…
The purpose of this video is to demonstrate how to Import and export files in WordPress. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Click on Too…

739 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