Wrox Programmer Forums
|
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 2nd, 2007, 05:42 PM
Authorized User
 
Join Date: Mar 2004
Posts: 36
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Classes in App_Code "not defined"!? LenexaKS ASP.NET 2.0 Professional 7 December 10th, 2007 02:23 PM
Renaming App_Code jacob .NET Web Services 5 July 4th, 2006 12:20 AM
Add Windows User control in Web User Control agarwalvidhu C# 0 March 30th, 2006 01:17 AM
Help! Custom Server Control using User Control diehard ASP.NET 1.0 and 1.1 Professional 2 January 4th, 2006 12:33 PM
Help with control initialization in user control mike_remember ASP.NET 1.0 and 1.1 Professional 7 December 19th, 2005 11:08 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.