473,398 Members | 2,404 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

Reusable Components

In my Visual Studio solution, I have 2 projects.. One project implements a
newsletter object, the other a file upload user control. When I compile the
solution, each project generates its own DLL.

My question : How can I reuse these components in other solutions? What
steps do I need to take to make the newsletter object and file upload user
control available and usable in other solutions?

Thx.

Bijoy
Nov 18 '05 #1
9 1269
You should just be able to drop the dll files in the bin folder for the
project and then create a reference to the dll in your VS project (in the
references folder in the solution explorer). It will then be aviailable in
your project.

Cheers,

Tim.
Nov 18 '05 #2
Include the projects for those Controls in the other solutions and reference
them.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Neither a follower
nor a lender be.

"Bijoy Naick" <b_*****@yahoo.ca> wrote in message
news:OH*************@TK2MSFTNGP11.phx.gbl...
In my Visual Studio solution, I have 2 projects.. One project implements a
newsletter object, the other a file upload user control. When I compile the solution, each project generates its own DLL.

My question : How can I reuse these components in other solutions? What
steps do I need to take to make the newsletter object and file upload user
control available and usable in other solutions?

Thx.

Bijoy

Nov 18 '05 #3
You can either insert the project into another solution or set the reference
to your object.

chanmm

"Bijoy Naick" <b_*****@yahoo.ca> wrote in message
news:OH*************@TK2MSFTNGP11.phx.gbl...
In my Visual Studio solution, I have 2 projects.. One project implements a
newsletter object, the other a file upload user control. When I compile
the
solution, each project generates its own DLL.

My question : How can I reuse these components in other solutions? What
steps do I need to take to make the newsletter object and file upload user
control available and usable in other solutions?

Thx.

Bijoy

Nov 18 '05 #4
In addition to the other fine suggestions, you might also consider
registering shared components in the Global Assembly Cache.

Here's more info:
http://msdn.microsoft.com/library/de...emblyCache.asp
http://www.aspzone.com/articles/john/GAC/

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
"Bijoy Naick" <b_*****@yahoo.ca> wrote in message
news:OH*************@TK2MSFTNGP11.phx.gbl...
In my Visual Studio solution, I have 2 projects.. One project implements a
newsletter object, the other a file upload user control. When I compile
the
solution, each project generates its own DLL.

My question : How can I reuse these components in other solutions? What
steps do I need to take to make the newsletter object and file upload user
control available and usable in other solutions?

Thx.

Bijoy

Nov 18 '05 #5
Thanks everyone.. I was able to add the dll's to the bin folder. I was also
able to create an instance of the newsletter object.

But I cant figure out how to include the user control on a page.. Normally,
one would create an ascx file and "register" the control on the page that
uses the control. What do I do with the DLL?
"Bijoy Naick" <b_*****@yahoo.ca> wrote in message
news:OH*************@TK2MSFTNGP11.phx.gbl...
In my Visual Studio solution, I have 2 projects.. One project implements a
newsletter object, the other a file upload user control. When I compile the solution, each project generates its own DLL.

My question : How can I reuse these components in other solutions? What
steps do I need to take to make the newsletter object and file upload user
control available and usable in other solutions?

Thx.

Bijoy

Nov 18 '05 #6
Oh, you didn't mention that it was a user control you were talking about.
That's different.
There is no supported way to reference a user control between projects.
For that kind of reuse you'll want a to create custom control, not a user
control.
Here's more info:
http://msdn.microsoft.com/library/de...ebControls.asp

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
"Bijoy Naick" <b_*****@yahoo.ca> wrote in message
news:e1**************@TK2MSFTNGP11.phx.gbl...
Thanks everyone.. I was able to add the dll's to the bin folder. I was
also
able to create an instance of the newsletter object.

But I cant figure out how to include the user control on a page..
Normally,
one would create an ascx file and "register" the control on the page that
uses the control. What do I do with the DLL?
"Bijoy Naick" <b_*****@yahoo.ca> wrote in message
news:OH*************@TK2MSFTNGP11.phx.gbl...
In my Visual Studio solution, I have 2 projects.. One project implements
a
newsletter object, the other a file upload user control. When I compile

the
solution, each project generates its own DLL.

My question : How can I reuse these components in other solutions? What
steps do I need to take to make the newsletter object and file upload
user
control available and usable in other solutions?

Thx.

Bijoy


Nov 18 '05 #7
Thanks Steve.. I'll look into it.

BTW: I did specify that its a user control.. :)

"Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message
news:ut**************@TK2MSFTNGP14.phx.gbl...
Oh, you didn't mention that it was a user control you were talking about.
That's different.
There is no supported way to reference a user control between projects.
For that kind of reuse you'll want a to create custom control, not a user
control.
Here's more info:
http://msdn.microsoft.com/library/de...ebControls.asp
--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
"Bijoy Naick" <b_*****@yahoo.ca> wrote in message
news:e1**************@TK2MSFTNGP11.phx.gbl...
Thanks everyone.. I was able to add the dll's to the bin folder. I was
also
able to create an instance of the newsletter object.

But I cant figure out how to include the user control on a page..
Normally,
one would create an ascx file and "register" the control on the page that uses the control. What do I do with the DLL?
"Bijoy Naick" <b_*****@yahoo.ca> wrote in message
news:OH*************@TK2MSFTNGP11.phx.gbl...
In my Visual Studio solution, I have 2 projects.. One project implements a
newsletter object, the other a file upload user control. When I compile

the
solution, each project generates its own DLL.

My question : How can I reuse these components in other solutions? What
steps do I need to take to make the newsletter object and file upload
user
control available and usable in other solutions?

Thx.

Bijoy



Nov 18 '05 #8
Steve,

I tried following the approach in the link you provided.. However, I dont
see a way of including a file input HTML element in the form. What am I
missing?

Bijoy
"Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message
news:ut**************@TK2MSFTNGP14.phx.gbl...
Oh, you didn't mention that it was a user control you were talking about.
That's different.
There is no supported way to reference a user control between projects.
For that kind of reuse you'll want a to create custom control, not a user
control.
Here's more info:
http://msdn.microsoft.com/library/de...ebControls.asp
--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
"Bijoy Naick" <b_*****@yahoo.ca> wrote in message
news:e1**************@TK2MSFTNGP11.phx.gbl...
Thanks everyone.. I was able to add the dll's to the bin folder. I was
also
able to create an instance of the newsletter object.

But I cant figure out how to include the user control on a page..
Normally,
one would create an ascx file and "register" the control on the page that uses the control. What do I do with the DLL?
"Bijoy Naick" <b_*****@yahoo.ca> wrote in message
news:OH*************@TK2MSFTNGP11.phx.gbl...
In my Visual Studio solution, I have 2 projects.. One project implements a
newsletter object, the other a file upload user control. When I compile

the
solution, each project generates its own DLL.

My question : How can I reuse these components in other solutions? What
steps do I need to take to make the newsletter object and file upload
user
control available and usable in other solutions?

Thx.

Bijoy



Nov 18 '05 #9
Maybe you're missing these two lines of code?
Dim InputControl As New System.Web.UI.HtmlControls.HtmlInputFile

Page.Controls.Add(InputControl)
--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net

"Bijoy Naick" <b_*****@yahoo.ca> wrote in message
news:ed**************@TK2MSFTNGP10.phx.gbl...
Steve,

I tried following the approach in the link you provided.. However, I dont
see a way of including a file input HTML element in the form. What am I
missing?

Bijoy
"Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message
news:ut**************@TK2MSFTNGP14.phx.gbl...
Oh, you didn't mention that it was a user control you were talking about.
That's different.
There is no supported way to reference a user control between projects.
For that kind of reuse you'll want a to create custom control, not a user
control.
Here's more info:

http://msdn.microsoft.com/library/de...ebControls.asp

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
"Bijoy Naick" <b_*****@yahoo.ca> wrote in message
news:e1**************@TK2MSFTNGP11.phx.gbl...
> Thanks everyone.. I was able to add the dll's to the bin folder. I was
> also
> able to create an instance of the newsletter object.
>
> But I cant figure out how to include the user control on a page..
> Normally,
> one would create an ascx file and "register" the control on the page that > uses the control. What do I do with the DLL?
>
>
> "Bijoy Naick" <b_*****@yahoo.ca> wrote in message
> news:OH*************@TK2MSFTNGP11.phx.gbl...
>> In my Visual Studio solution, I have 2 projects.. One project implements >> a
>> newsletter object, the other a file upload user control. When I
>> compile
> the
>> solution, each project generates its own DLL.
>>
>> My question : How can I reuse these components in other solutions?
>> What
>> steps do I need to take to make the newsletter object and file upload
>> user
>> control available and usable in other solutions?
>>
>> Thx.
>>
>> Bijoy
>>
>>
>
>



Nov 18 '05 #10

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

Similar topics

0
by: Tony Marston | last post by:
For those of you who think that using XSL/XML to create your HTML output from a PHP application is not a viable proposition as XSL is a clunky language, it is too verbose and it cannot get the job...
1
by: Rhett | last post by:
Hello,EveryBody! I'm troubled by a design problem, Hoping that you'll save me out! The Situation is: We have two project of code A and B.A is our reusable code base, B is for specified for...
2
by: John | last post by:
Hi, I have a data driven application which has some generalized components. So, for reuse, I am building the components so they can be reused in other projects ... it takes almost no extra...
3
by: Axter | last post by:
I'm wondering about the practical use of dynamic_cast in reusable or generic code. I'm currently working on a smart pointer that can be used on vector and other STL containers. See following...
27
by: Matt Kruse | last post by:
Since this topic has come up several times in other threads, I thought I'd make a separate thread and gather opinions from (hopefully) a more varied range of newsgroup participants. What are...
2
by: DaleMan | last post by:
Where can I learn more about reusable businesss objects and their uses? I've been reading that one of .Net's advantages is that a developer can write reusable business objects. I would like to...
0
by: fiona | last post by:
Reading, Berkshire, UK 05 June 2007 - Crainiate Software make details available of the release of Objecto Framework 2.0, an upgrade to their enterprise business component framework, designed to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
0
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,...
0
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...
0
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,...
0
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...

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.