473,770 Members | 6,091 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Adding class library to website

Hi I am used to using the App_Code folder to put my DAL and BLL classes.
However I want to move toward using separate dll's so I can start doing
things like Unit Tests and using Sandcastle for documentation.

My class library DAL project contains 4 .vb files, each one containing a
single class, which maps to a DB table.This builds OK.
I then create a website and add the class library project to the website. I
then in the website a reference to the project. This builds OK. And I can
see the DLL in the bin folder of the website.

When I go to add code I can't figure out how to "reference" my DAL - it
doesn't appear in the intellisense. I know this will be stupid but I can't
figure it out.

Regards, Chris.
Jul 21 '08 #1
2 3832
I'm an idiot - I forgot to add the word public before the class name.....

"Fresno Bob" <no****@nospam. comwrote in message
news:Ov******** ******@TK2MSFTN GP03.phx.gbl...
Hi I am used to using the App_Code folder to put my DAL and BLL classes.
However I want to move toward using separate dll's so I can start doing
things like Unit Tests and using Sandcastle for documentation.

My class library DAL project contains 4 .vb files, each one containing a
single class, which maps to a DB table.This builds OK.
I then create a website and add the class library project to the website.
I
then in the website a reference to the project. This builds OK. And I can
see the DLL in the bin folder of the website.

When I go to add code I can't figure out how to "reference" my DAL - it
doesn't appear in the intellisense. I know this will be stupid but I
can't
figure it out.

Regards, Chris.

Jul 21 '08 #2
I have a class library (my data access layer) which I have added as a
project to my website. How do I pass my connection string from my website's
web.config into the dll. What is the "correct" way to do this? Regards,
Chris.

"Fresno Bob" <no****@nospam. comwrote in message
news:Ov******** ******@TK2MSFTN GP03.phx.gbl...
Hi I am used to using the App_Code folder to put my DAL and BLL classes.
However I want to move toward using separate dll's so I can start doing
things like Unit Tests and using Sandcastle for documentation.

My class library DAL project contains 4 .vb files, each one containing a
single class, which maps to a DB table.This builds OK.
I then create a website and add the class library project to the website.
I
then in the website a reference to the project. This builds OK. And I can
see the DLL in the bin folder of the website.

When I go to add code I can't figure out how to "reference" my DAL - it
doesn't appear in the intellisense. I know this will be stupid but I
can't
figure it out.

Regards, Chris.

Jul 21 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
5430
by: Wysiwyg | last post by:
Is there any way to add an embedded resource to a project without copying it to the project's directory? I have shared resources and don't want each project using the images, xml files, etc. to need to be updated with the current copy before being built. I also don't want projects being built with the old copy. Thanks! Bill
4
5590
by: Dmitry Korolyov [MVP] | last post by:
When we use btnSubmit.Attributes = "javascript: this.disabled=true;" to make the button disabled and prevent users from clicking it again while form data still posting, there is no longer postback. I.e. the button does go disabled, but the form does not invoke submit() method. Of course, it does work fine without this property. Clues?
2
2051
by: Avi Shilon | last post by:
Hi, I'm trying to create a Solution that contains several projects within it, one of which is an ASP.NET web application and the others are class libraries (Data and Business tiers, which are seperate projects). When i created the two class library projects, the projects were added to the root directory of the solution, but when i tried to add the web application project, it wouldn't let
2
2656
by: Anna | last post by:
I added a small Web.Config file to the root of my website so that I could view errors on a machine other than the server: <configuration> <system.web> <customErrors mode="Off" /> </system.web> </configuration> However, this immediately threw a different error when I tried to view
10
2358
by: Trevor | last post by:
Hey, I am trying to do this tutorial on the microsoft site : http://msdn.microsoft.com/library/default.asp? url=/library/en-us/dndotnet/html/usingadonet.asp I can get everything to work up to the DataAdd part (Section heading is Adding Rows to a DataSet) I dont really know what to do after i have added all the
28
1886
by: Ilias Lazaridis | last post by:
I understand that I can use __metaclass__ to create a class which modifies the behaviour of another class. How can I add this metaclass to *all* classes in the system? (In ruby I would alter the "Class" class) .. http://lazaridis.com
3
1883
by: Jonathan Wood | last post by:
I could really use some help on this. First of all, I want to create a Web control where I render the control completely from scratch based on information from a database. In the book "Beginning ASP.NET 2.0 in C# 2005", it provides an example of doing this, which is declared as: public class ConfigurableRepeater : WebControl.
2
1716
by: Fresno Bob | last post by:
I am used to putting my business logic layer etc in the App_code folder in a website project. I want to use class libraries so I can use Sandcastle and NUnit. However unlike a website project I do not get immediate Intellisense. I have to Add the project to the website solution (File>Add>Existing Project) Add a reference to the class library Build the solution Use the class library in website
1
1348
by: Fresno Bob | last post by:
Hi I am used to using the App_Code folder to put my DAL and BLL classes. However I want to move toward using separate dll's so I can start doing things like Unit Tests and using Sandcastle for documentation. My class library DAL project contains 4 .vb files, each one containing a single class, which maps to a DB table.This builds OK. I then create a website and add the class library project to the website. I then in the website a...
0
9425
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10231
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10059
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10005
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8887
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7416
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5313
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5452
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3576
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.