server controls in app_code.

  • Thread starter motorhead_maniac
  • Start date
M

motorhead_maniac

anyone,
how to reference server controls (without .ascx) that are in the
app_code folder.

The msdn documentation talks about dropping them in and using Page
section of web.config to add and specify Namespace , but iam not able to
figure out their Namespace

Many thanks
 
B

Brock Allen

The namespace is whatever you put in the code in App_Code. You can always
add one:

namespace Foo
{
class Bar : Control {}
}

The assembly name is App_Code, BTW.
 

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,769
Messages
2,569,582
Members
45,071
Latest member
MetabolicSolutionsKeto

Latest Threads

Top