App_Code and User Control
Hello and Thanks in advance.
My question deals with using a custom user control that is in the App_Code folder.
Personally when I create a solution I have an extra project used for Presentation (we'll call this TestPL). When I make it available on a page, all I have to do is:
<%@ Register TagPrefix="uc1" Namespace="TestPL" Assembly="TestPL" %>
In the situation I am currently in, I am not able to create another project. When I tried to add it to the web project, I get a message that says that I need to place it in the App_Code folder to be consumable to the site (This file we'll call BorderClass.cs)
I am having problems registering the controls to a page now. From research I have found that I am suppossed to use something like the following:
<%@ Register TagPrefix="uc1" Namespace="xxx" Assembly="__code" %>
I cannot seem to find the correct item to place under the namespace field. My solution name is VS2005TestSolution, and my Web App is VS2005WebApp. Neither of these two items work. Placing BorderClass did not work either.
Is there something I'm missing?
Again, thanks in advance.
Esteban.
|