Reusable Components

  • Thread starter Thread starter Bijoy Naick
  • Start date Start date
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
 
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.
 
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.
 
You can either insert the project into another solution or set the reference
to your object.

chanmm
 
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?
 
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
 
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
 
Back
Top