473,545 Members | 1,977 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Adding reference from one web application to another??

hello guys,

Let is say I have two layers: the GUI web application that has the master
page and web forms. and the DAL - Data access layer
which is another web application and has been created using Strongly Typed
Dataset. I have created the DAL using the tuts explained
in MSDN :
http://msdn.microsoft.com/library/de...asource_vb.asp

What is the best way to add reference from my GUI page to the DAL. They are
both web applicaitons. I added the DAL to the GUI web
but when i try to add reference I can't see Add reference to DAL project to
be selected and added ...

What is the best way?

thx

Nov 19 '06 #1
7 3809
"Annie" <my************ **@gmail.comwro te in message
news:45******** @dnews.tpgi.com .au...
Let is say I have two layers: the GUI web application that has the master
page and web forms. and the DAL - Data access layer
which is another web application and has been created using Strongly Typed
Dataset. I have created the DAL using the tuts explained
in MSDN :
http://msdn.microsoft.com/library/de...asource_vb.asp

What is the best way to add reference from my GUI page to the DAL. They
are both web applicaitons. I added the DAL to the GUI web
but when i try to add reference I can't see Add reference to DAL project
to be selected and added ...

What is the best way?
No doubt people will disagree with me, but I wouldn't have created your DAL
as a separate web application. Maybe a separate class library at a push, but
most certainly not a separate web application.

My DAL exists in a single class file, and I use Visual SourceSafe to provide
version control on all my projects.

Therefore, whenever I create a new project which requires the DAL (which is
pretty much all of them), I simply share the class file into the new project
through SourceSafe. That means that if I make and improvements, amendments,
enhancements to the DAL, all my other projects get them automatically next
time I compile them.
Nov 19 '06 #2
Hi,

Mark Rae wrote:
No doubt people will disagree with me, but I wouldn't have created your DAL
as a separate web application. Maybe a separate class library at a push, but
most certainly not a separate web application.

My DAL exists in a single class file, and I use Visual SourceSafe to provide
version control on all my projects.

Therefore, whenever I create a new project which requires the DAL (which is
pretty much all of them), I simply share the class file into the new project
through SourceSafe. That means that if I make and improvements, amendments,
enhancements to the DAL, all my other projects get them automatically next
time I compile them.
Another way to get that with a slightly more elaborate design is to make
the DAL a class library, and to reference the project and not the DLL
from your UI application (WinForms, ASP.NET or WPF...).

I like this kind of design, because it allows me to add a test UI in my
DAL project (Console application, or even simple WinForms application),
so I can develop and test my DAL separately from the other applications.
When it is ready, I just open the Web application solution, and all the
changes are made available to it automatically. It's IME the best way to
solve the versioning problems you get when you use assembly references.

HTH,
Laurent
--
Laurent Bugnion, GalaSoft
Software engineering: http://www.galasoft-LB.ch
PhotoAlbum: http://www.galasoft-LB.ch/pictures
Support children in Calcutta: http://www.calcutta-espoir.ch
Nov 19 '06 #3
"Laurent Bugnion" <ga*********@bl uewin.chwrote in message
news:OM******** ******@TK2MSFTN GP02.phx.gbl...
>Maybe a separate class library

Another way to get that with a slightly more elaborate design is to make
the DAL a class library
Er, yeah...
Nov 19 '06 #4
I don't see where Scott Mitchell indicated you should make your Data Access
Layer into a "Web Application". The other comments about having your DAL is a
class library are wise suggestions.

You are certainly on the right track, just remember that web presentation is
by definition an "ASP.NET Application", but business logic and Data Access
are not - nor should they be.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Annie" wrote:
hello guys,

Let is say I have two layers: the GUI web application that has the master
page and web forms. and the DAL - Data access layer
which is another web application and has been created using Strongly Typed
Dataset. I have created the DAL using the tuts explained
in MSDN :
http://msdn.microsoft.com/library/de...asource_vb.asp

What is the best way to add reference from my GUI page to the DAL. They are
both web applicaitons. I added the DAL to the GUI web
but when i try to add reference I can't see Add reference to DAL project to
be selected and added ...

What is the best way?

thx

Nov 19 '06 #5
Hi,

Mark Rae wrote:
"Laurent Bugnion" <ga*********@bl uewin.chwrote in message
news:OM******** ******@TK2MSFTN GP02.phx.gbl...
>>Maybe a separate class library
Another way to get that with a slightly more elaborate design is to make
the DAL a class library

Er, yeah...
*L* That was a reply to your "My DAL exists in a single class file" :-)

Laurent
--
Laurent Bugnion, GalaSoft
Software engineering: http://www.galasoft-LB.ch
PhotoAlbum: http://www.galasoft-LB.ch/pictures
Support children in Calcutta: http://www.calcutta-espoir.ch
Nov 19 '06 #6
"Laurent Bugnion" <ga*********@bl uewin.chwrote in message
news:um******** ******@TK2MSFTN GP04.phx.gbl...
*L* That was a reply to your "My DAL exists in a single class file" :-)
Which it does, thankfully...
Nov 19 '06 #7
Many thanks guys for all the input

"Peter Bromberg [C# MVP]" <pb*******@yaho o.nospammin.com wrote in message
news:F5******** *************** ***********@mic rosoft.com...
>I don't see where Scott Mitchell indicated you should make your Data Access
Layer into a "Web Application". The other comments about having your DAL
is a
class library are wise suggestions.

You are certainly on the right track, just remember that web presentation
is
by definition an "ASP.NET Application", but business logic and Data Access
are not - nor should they be.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Annie" wrote:
>hello guys,

Let is say I have two layers: the GUI web application that has the master
page and web forms. and the DAL - Data access layer
which is another web application and has been created using Strongly
Typed
Dataset. I have created the DAL using the tuts explained
in MSDN :
http://msdn.microsoft.com/library/de...asource_vb.asp

What is the best way to add reference from my GUI page to the DAL. They
are
both web applicaitons. I added the DAL to the GUI web
but when i try to add reference I can't see Add reference to DAL project
to
be selected and added ...

What is the best way?

thx


Nov 20 '06 #8

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

Similar topics

2
1593
by: Kshitij | last post by:
Hi, I am having a web application developed with me which contains a reference to a web service which is on the local network.Now I am creating the setup project for the web application. I will be deploying the application on another machine and I want to change the web reference that I have added. As we do it for the database connection...
2
13084
by: Lisa Jones | last post by:
Hi I am trying to add web reference to my code to use web services . (I am using VS 2003) so I go to add references/ select web reference. After selecting the right web service from my local machine and rename it to something other than local host (aWebService) and then Adding the cod sing aWebService namespace WebClien /// <summary ///...
7
5396
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
3
5752
by: MIGUEL | last post by:
Hi all, I'm quite lost with how adding web references to a project creates proxy classes. I've developed a web service with two classes inside and that contains three references to three DLLs. After building it up, I've deployed it on the web server. From my Windows application, I then add a web reference to that web service.
1
3626
by: rgarf | last post by:
I have a web service that is consumed by a C++ application. I added a C# dll reference to the web service, When the web service calls a method on the dll, it sends back an HRESULT of E_FAIL to my C++ application. What is causing the web service to return an E_FAIL when it calls the method on the dll it added as a reference? Thanks
3
1986
by: _DS | last post by:
The two obvious methods for ref'ing assemblies are: Add a reference and 'Browse' for the actual DLL OR Add existing project to the solution, then add a ref to 'Project'. 1: I'd like to find out what the latter method is doing. I'm assuming that it makes sure that debug exe gets matched to
3
1869
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.
1
1164
by: vinodkreddy1 | last post by:
hi good morning every body... i have a problem in adding Reference of any dll to asp.net 2005. i am trying to add dlls reference to asp.net application. but they r not adding to the reference list of the application. so i am not able to imports that. it is working in windows 2005 and vs 2003. the other thing is i tried the application...
8
19921
by: Jason | last post by:
Hello, I am trying to utilitze the AJAX Control toolkit in my asp.net project. I have added a reference to AjaxControlToolkit.dll, and in my page, added these lines of code: <ajaxToolkit:ToolkitScriptManager runat="Server" EnableScriptGlobalization="true" EnableScriptLocalization="true" ID="ScriptManager1" />
0
7478
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7668
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. ...
1
7437
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...
0
7773
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
4960
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3466
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...
0
3448
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1901
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1025
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.