DLL

  • Thread starter Thread starter Alan T
  • Start date Start date
A

Alan T

I want to create a class library (DLL) so that the webpage can call my DLL.
However, as I am pretty new to C# (and .NET), I don't know can I create the
class as what I did in normal C# project ?
I mean as I created the DLL and also methods inside class library, eg. class
EmployeeLibrary. It has method GetDetailsByID, the input parameter is
Integer, can I return a customed class object, eg. Employee defined elswhere
?
How does the webpage will call this method ?
 
If you include a reference to it you can access it like any other
class.

Just note that you might not want to try to add it to the webpage as
such unless it actually is a control.
 
Hi,

Easy , include another project in your solution, the project type will be
"Class Library" , back in your web project click Add reference, select
project output tab and select the DLL project. Now you have the requires
structure.

all you need to do is adding a using MyNamespace in the file you need to use
the dll features.
 

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

Similar Threads


Back
Top