Load Web Control Library dynamically at runtime

  • Thread starter news.microsoft.com
  • Start date
N

news.microsoft.com

Hi all,

I've to do the following:

1. Create a asp.net web control library.
2. Create a asp.net server control (inside the library).
3. Compiling the library (library.dll)


now i created a asp.net web application project. i copied the library.dll in
the bin directory of the web application.
now i created a asp.net page. in the page_load method i need to load the
control library (library.dll) *at runtime* and create a instance of the
server control inside the library.
important: i cannot create a "reference" to library.dll at design time!!!

i know the method "LoadControl", but how can i use it this way?

Thank you!

Ingo
 
B

Brock Allen

Are you using VS.NET? Is this reference for the code in the codebehind or
the code in the ASPX itself? VS.NET 2003 or 2005?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,048
Latest member
verona

Latest Threads

Top