Reusable Components

B

Bijoy Naick

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
 
T

Tim Payne

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.
 
K

Kevin Spencer

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.
 
C

chanmmn

You can either insert the project into another solution or set the reference
to your object.

chanmm
 
B

Bijoy Naick

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?
 
B

Bijoy Naick

Thanks Steve.. I'll look into it.

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

Bijoy Naick

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
 
S

Steve C. Orr [MVP, MCSD]

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,679
Members
48,796
Latest member
Greg L.

Latest Threads

Top